Skip to content

Auxiliary/External Docs? #111

Answered by sezanzeb
Trequetrum asked this question in Q&A
Discussion options

You must be logged in to vote

I haven't come across a resource that explains all the possible names like REL_WHEEL and such.

You can use sudo evtest to find out type and code by using it on a device with a wheel. It would display something like
Event: time 1621411092.319359, type 2 (EV_REL), code 8 (REL_WHEEL), value -1. This is how I figured out all the relevant events.

There is this list: https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h and this one: https://gist.github.com/sezanzeb/e29bae637b8a799ccf2490b8537487df

Names like "Left" are from xkb. Everything starting with KEY_, REL_, BTN_, ... are constants known to linux that are not affected by xkbs keyboard layout.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Trequetrum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants