Reputation: 5415
Using evdev
(the kernel interface, not the X driver), I can listen for keyboard events and get keycodes. Is there a library interface to convert those to keysyms (again, those set by loadkeys
, not xmodmap
)?
Upvotes: 2
Views: 568
Reputation: 15121
Do not know any library can do that.
Maybe you want to take a look of the dumpkeys
source, special the codetoksym()
function. You can checkout the kbd
(dumpkeys
is part of it) source by the following command:
git clone http://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git
Upvotes: 2