Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
libdevinput - a ruby library to read input device events from /dev/input/eventX on linux systems
This ruby library makes it easy to read events from linux event devices. These device files, residing in /dev/input/ get created for a number of different human input devices like keyboards, mice, touchscreens, joysticks and the like.
Example:
require 'rubygems' require 'libdevinput'
dev = DevInput.new "/dev/input/event0" dev.each do |event| puts "got event #{event}" end
Each event consists of the following fields: event.time: A Time object of the event time event.tv_sec: An Integer with the number of seconds since epoch event.tv_usec: An Integer with the sub-seconds value in milliseconds event.type: An Integer with the type code event.type_str: A String representation of the type if available event.code: An Integer with the event code event.code_str: A String representation of the code if available event.value: An Integer with the event value event.value_str: A String representation of the value if available
The library currently only reads raw events. It does not read the capabilities of a device via ioctl, nor does it interpret the states of modifier keys. If you want to change this or something else, you are more than welcome to fork this project.
This library was influenced by evtest.c, the event device test program by Vojtech Pavlik
FAQs
Unknown package
We found that libdevinput demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.