Commit 7ac0b0a2 authored by Zbigniew Luszpinski's avatar Zbigniew Luszpinski Committed by Adrian Bunk

Input: psmouse - add detection of Logitech TrackMan Wheel trackball

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent 4c3b882b
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#define PS2PP_KIND_WHEEL 1 #define PS2PP_KIND_WHEEL 1
#define PS2PP_KIND_MX 2 #define PS2PP_KIND_MX 2
#define PS2PP_KIND_TP3 3 #define PS2PP_KIND_TP3 3
#define PS2PP_KIND_TRACKMAN 4
/* Logitech mouse features */ /* Logitech mouse features */
#define PS2PP_WHEEL 0x01 #define PS2PP_WHEEL 0x01
...@@ -223,6 +224,7 @@ static struct ps2pp_info *get_model_info(unsigned char model) ...@@ -223,6 +224,7 @@ static struct ps2pp_info *get_model_info(unsigned char model)
{ 73, 0, PS2PP_SIDE_BTN }, { 73, 0, PS2PP_SIDE_BTN },
{ 75, PS2PP_KIND_WHEEL, PS2PP_WHEEL }, { 75, PS2PP_KIND_WHEEL, PS2PP_WHEEL },
{ 76, PS2PP_KIND_WHEEL, PS2PP_WHEEL }, { 76, PS2PP_KIND_WHEEL, PS2PP_WHEEL },
{ 79, PS2PP_KIND_TRACKMAN, PS2PP_WHEEL }, /* TrackMan with wheel */
{ 80, PS2PP_KIND_WHEEL, PS2PP_SIDE_BTN | PS2PP_WHEEL }, { 80, PS2PP_KIND_WHEEL, PS2PP_SIDE_BTN | PS2PP_WHEEL },
{ 81, PS2PP_KIND_WHEEL, PS2PP_WHEEL }, { 81, PS2PP_KIND_WHEEL, PS2PP_WHEEL },
{ 83, PS2PP_KIND_WHEEL, PS2PP_WHEEL }, { 83, PS2PP_KIND_WHEEL, PS2PP_WHEEL },
...@@ -298,6 +300,10 @@ static void ps2pp_set_model_properties(struct psmouse *psmouse, struct ps2pp_inf ...@@ -298,6 +300,10 @@ static void ps2pp_set_model_properties(struct psmouse *psmouse, struct ps2pp_inf
psmouse->name = "TouchPad 3"; psmouse->name = "TouchPad 3";
break; break;
case PS2PP_KIND_TRACKMAN:
psmouse->name = "TrackMan";
break;
default: default:
/* /*
* Set name to "Mouse" only when using PS2++, * Set name to "Mouse" only when using PS2++,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment