Scan Codes for a Custom Keyboard
cskeeters at nciinc.com
Wed May 8 15:41:30 PDT 2013
I'm a programmer working on a project that has a custom keyboard
attached to a PC. I am replacing Windows 2000 with OpenSUSE 12.2.
The keyboard has a whole bunch of extra buttons and I have the scan
codes for them from the source code that ran in windows. The keys all
work in Windows, but when I use Linux, the non-standard keys are not
getting recognized in my program (using xlib) or at all using xev or
showkey -s. The scan codes that I need to work are:
I started fiddling with /usr/share/X11/xkb/keycodes/evdev and I
changed tab to one of my scan codes (0x64 or 100). I ran setxkbmap
-keycodes evdev and the new button does not do what tab did, but tab
was disabled too.
I'm wondering how to go about getting these scan codes to show up as
keyboard KeyPress events in xlib. Where should I start?
NCI Information Systems, Inc.
More information about the xorg