diff options
author | Sergey Belyashov <Sergey.Belyashov@gmail.com> | 2009-05-15 10:05:57 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2009-05-15 10:05:57 -0400 |
commit | f0bca459829fd33d659c8cd0369ac86a3924a9bc (patch) | |
tree | 16bcc48118e90613085e96e1cefefdd9e90f7b79 | |
parent | 0f6f4319a72a2b32d19643ff811f25633d8b0207 (diff) |
HID: autocentering support for Logitech Force 3D Pro
This patch adds autocentering support for Logitech Force 3D Pro.
Signed-off-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/hid-lgff.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/hid/hid-lgff.c b/drivers/hid/hid-lgff.c index 9735be6ee4ff..56099709581c 100644 --- a/drivers/hid/hid-lgff.c +++ b/drivers/hid/hid-lgff.c | |||
@@ -50,6 +50,12 @@ static const signed short ff_joystick[] = { | |||
50 | -1 | 50 | -1 |
51 | }; | 51 | }; |
52 | 52 | ||
53 | static const signed short ff_joystick_ac[] = { | ||
54 | FF_CONSTANT, | ||
55 | FF_AUTOCENTER, | ||
56 | -1 | ||
57 | }; | ||
58 | |||
53 | static const signed short ff_wheel[] = { | 59 | static const signed short ff_wheel[] = { |
54 | FF_CONSTANT, | 60 | FF_CONSTANT, |
55 | FF_AUTOCENTER, | 61 | FF_AUTOCENTER, |
@@ -60,7 +66,7 @@ static const struct dev_type devices[] = { | |||
60 | { 0x046d, 0xc211, ff_rumble }, | 66 | { 0x046d, 0xc211, ff_rumble }, |
61 | { 0x046d, 0xc219, ff_rumble }, | 67 | { 0x046d, 0xc219, ff_rumble }, |
62 | { 0x046d, 0xc283, ff_joystick }, | 68 | { 0x046d, 0xc283, ff_joystick }, |
63 | { 0x046d, 0xc286, ff_joystick }, | 69 | { 0x046d, 0xc286, ff_joystick_ac }, |
64 | { 0x046d, 0xc294, ff_wheel }, | 70 | { 0x046d, 0xc294, ff_wheel }, |
65 | { 0x046d, 0xc295, ff_joystick }, | 71 | { 0x046d, 0xc295, ff_joystick }, |
66 | { 0x046d, 0xca03, ff_wheel }, | 72 | { 0x046d, 0xca03, ff_wheel }, |