aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-10-29 13:50:07 +1030
committerPeter Hutterer <peter.hutterer@redhat.com>2008-10-29 17:05:58 +1030
commit64554e4799a697d37dfd8be480f8eee636b9bea1 (patch)
tree3a118ee034db37e89287a1d55d9320535df50ec4 /src/evdev.h
parentRemove obsolete FIXME (diff)
downloadxf86-input-evdev-64554e4799a697d37dfd8be480f8eee636b9bea1.tar.gz
xf86-input-evdev-64554e4799a697d37dfd8be480f8eee636b9bea1.tar.bz2
xf86-input-evdev-64554e4799a697d37dfd8be480f8eee636b9bea1.zip
Treat BTN_[0-2] as LMR buttons if necessary.
Treat BTN_[0-2] as LMR buttons on devices that do not advertise BTN_LEFT, BTN_MIDDLE, BTN_RIGHT (e.g. 3Dconnexion SpaceNavigator). Otherwise, treat BTN_[0+n] as button 5+n. Note: This causes duplicate mappings for BTN_0 + n and BTN_SIDE + n. This also fixes a bug where we could end up with negative button numbers after trying to map BTN_0. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.h b/src/evdev.h
index 7e1da15..5a97185 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -119,7 +119,7 @@ typedef struct {
struct input_absinfo absinfo[ABS_MAX];
} EvdevRec, *EvdevPtr;
-unsigned int EvdevUtilButtonEventToButtonNumber(int code);
+unsigned int EvdevUtilButtonEventToButtonNumber(EvdevPtr pEvdev, int code);
/* Middle Button emulation */
int EvdevMBEmuTimer(InputInfoPtr);