HID: microsoft: lacking keycodes for Sidewinder X4 / X6 support

From: Tolga Cakir <hidden>
Date: 2014-03-05 14:40:38

Hi there,

I'm currently working on a kernel module patch, adding support for the
Microsoft Sidewinder X4 / X6 gaming keyboards. There are 30 dedicated
extra keys on the Sidewinder X6, all sending out individual USB codes
and 6 extra keys on the Sidewinder X4. Also, both devices feature 3
profiles for each of these extra keys, resulting in about 90 extra
keys for the Sidewinder X6 and 18 for the X4. While picking 18
keycodes for the Sidewinder X4 is not a big issue (KEY_F13 - KEY_F24,
KEY_WWW, KEY_EMAIL, KEY_PROG[1-4]), I'm having a hard time choosing
something reasonable for the X6. These keys are (software)
programmable and therefore don't need to have a function except
sending out an individual, unqiue keycode.

The problem I'm facing is not technical; it's more of a design
question. With keyboards like the Corsair K90 / K95 (18 macro keys, 3
profiles each, total of 54 extra keys) or the Logitech G110 (12 macro
keys, 3 profiles, 36 extra keys), there's need for dedicated, general
keycodes for extra keys. So, I'd propose defining KEY_M1 - KEY_M100 (M
for macro) in linux/input.h for such uses or extending the already
defined F-keys up to KEY_F100. What are your thoughts about this?

Here's the work-in-progress code:
https://github.com/tolga9009/hid-sidewinder-x4/blob/master/hid-microsoft.c

Thank you for your time,
Tolga Cakir
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help