I have a headless ARM Debian machine in which I run Node. The device has hard buttons that are displayed on ordinary keyboard events using gpio-keys.
My goal is to capture global events both from hard buttons and from any connected keyboards in Node. I need a solution that can capture keydown / keyup events regardless of the terminal in which it is running (it will be running through an SSH session). It does not have to be cross-platform, if it runs on ARM Debian, I will accept it.
I imagine something that is read directly from any attributes sysfs, but this is not a requirement.
Can someone help me with this? I got stuck for a while.
source
share