Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343105
b: refs/heads/master
c: f8e86d0
h: refs/heads/master
i:
  343103: 78a23cc
v: v3
  • Loading branch information
Ingo Ruhnke authored and Jiri Kosina committed Oct 31, 2012
1 parent d023763 commit fe917e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c10354d4a6c9256c3393feafcbd030cb392a9baf
refs/heads/master: f8e86d054686d9090549476ea2394aa04c614a93
9 changes: 7 additions & 2 deletions trunk/drivers/hid/hid-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,14 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
if (code <= 0xf)
code += BTN_JOYSTICK;
else
code += BTN_TRIGGER_HAPPY;
code += BTN_TRIGGER_HAPPY - 0x10;
break;
case HID_GD_GAMEPAD:
if (code <= 0xf)
code += BTN_GAMEPAD;
else
code += BTN_TRIGGER_HAPPY - 0x10;
break;
case HID_GD_GAMEPAD: code += BTN_GAMEPAD; break;
default:
switch (field->physical) {
case HID_GD_MOUSE:
Expand Down

0 comments on commit fe917e2

Please sign in to comment.