(no title)
uep | 2 years ago
https://www.kernel.org/doc/html/latest/input/event-codes.htm...
This is very straightforward (EV_REL) and requires a very small amount of code. There can be different problems to deal with when working at this level, but in my experience, everything works as expected with keyboards, mice, and gamepads.
jeroenhd|2 years ago
Both approaches are reasonable and both are implemented in desktop operating systems for this reason.