Sample Header Ad - 728x90

X11 key names to Linux keycodes

1 vote
0 answers
2084 views
My program uses the X11 key names like exclam and XF86Forward but internally uses the Linux keycodes found in /usr/include/linux/input-event-codes.h. It's just an awk program, and I've written an associative array with the most important keys (K["F1"] = 59) to start with, but I was wondering if I could generate it from somewhere. I found /usr/share/X11/xkb/keycodes/ but my greps didn't seem promising.
Asked by geb (83 rep)
Aug 21, 2022, 12:12 PM
Last activity: Aug 21, 2022, 12:18 PM