diff options
author | Vojtech Pavlik <vojtech@suse.cz> | 2005-09-05 00:07:59 -0500 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2005-09-05 00:07:59 -0500 |
commit | 0aebfdac042b63d0f2625414062e138a4333181c (patch) | |
tree | 44d08bf2575e2dc16d304891cc90711bfd2fdf94 /drivers/usb/input/hid-input.c | |
parent | b8c9c642db4ab0811cc5bb0d8b90cc7819055c95 (diff) | |
download | talos-op-linux-0aebfdac042b63d0f2625414062e138a4333181c.tar.gz talos-op-linux-0aebfdac042b63d0f2625414062e138a4333181c.zip |
Input: add HID simulation mappings
Add simulation usage page mappings to hid-input.c to support
a new crop of joysticks using them to designate Rudder and
Throttle controls.
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/usb/input/hid-input.c')
-rw-r--r-- | drivers/usb/input/hid-input.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/input/hid-input.c b/drivers/usb/input/hid-input.c index 3b162a19d7b5..fa4f79d88aa7 100644 --- a/drivers/usb/input/hid-input.c +++ b/drivers/usb/input/hid-input.c @@ -131,6 +131,15 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel map_key(code); break; + + case HID_UP_SIMULATION: + + switch (usage->hid & 0xffff) { + case 0xba: map_abs(ABS_RUDDER); break; + case 0xbb: map_abs(ABS_THROTTLE); break; + } + break; + case HID_UP_GENDESK: if ((usage->hid & 0xf0) == 0x80) { /* SystemControl */ |