It looks like this has been fixed upstream. I will close it. If the
problem still occurs, please reopen it.
** Changed in: linux (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/929694
Title:
gamepad has incorrect code.
Status in linux package in Ubuntu:
Invalid
Bug description:
Looking at the current code for unbuntu, its as though the author was
not aware gamepads can have up to 32 buttons. I have a game pad that
need 24 buttons and anything over 18 spills in to tablet code.
I'd suggest the following change in linux-
source-3.0.0/drivers/hid/hid-input.c
code = ((usage->hid - 1) & HID_USAGE);
switch (field->application) {
case HID_GD_MOUSE:
case HID_GD_POINTER: code += BTN_MOUSE; break;
case HID_GD_JOYSTICK:
if (code <= 0xf)
code += BTN_JOYSTICK;
else
code += BTN_TRIGGER_HAPPY;
break;
case HID_GD_GAMEPAD:
if (code <= 0xf)
code += BTN_GAMEPAD;
else
code += BTN_TRIGGER_HAPPY;
break;
default:
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/929694/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp