OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7741e93
)
Input: Fix button mapping in joydev - BTN_TRIGGER was being
author
Vojtech Pavlik
<vojtech@suse.cz>
Sat, 28 May 2005 07:11:49 +0000
(
02:11
-0500)
committer
Dmitry Torokhov
<dtor_core@ameritech.net>
Sat, 28 May 2005 07:11:49 +0000
(
02:11
-0500)
mapped twice, resulting in it being the last (instead
of first) button on a joystick.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/joydev.c
patch
|
blob
|
history
diff --git
a/drivers/input/joydev.c
b/drivers/input/joydev.c
index
7d7527f
..
627d343
100644
(file)
--- a/
drivers/input/joydev.c
+++ b/
drivers/input/joydev.c
@@
-422,7
+422,7
@@
static struct input_handle *joydev_connect(struct input_handler *handler, struct
joydev->nkey++;
}
- for (i = 0; i < BTN_JOYSTICK - BTN_MISC
+ 1
; i++)
+ for (i = 0; i < BTN_JOYSTICK - BTN_MISC; i++)
if (test_bit(i + BTN_MISC, dev->keybit)) {
joydev->keymap[i] = joydev->nkey;
joydev->keypam[joydev->nkey] = i + BTN_MISC;