Open Vincinator opened 1 year ago
Implement a method to get a list of power button devices, so that events from all power buttons of the system can be handled by auraed.
/proc/bus/input/devices
X
/dev/input/eventX
Note a linux specific listener implementation: https://github.com/aurae-runtime/auraed/pull/31. BSD, OSX or other may handle input devices differently (I don't know yet).
Implement a method to get a list of power button devices, so that events from all power buttons of the system can be handled by auraed.
/proc/bus/input/devices
X
in/dev/input/eventX
will vary. Thus, another reason why the detection is required.Note a linux specific listener implementation: https://github.com/aurae-runtime/auraed/pull/31. BSD, OSX or other may handle input devices differently (I don't know yet).