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-11-03 13:46:35 +1030
commit6bcbbc0411cf3466edeb1fcbb393290cadfd3082 (patch)
tree6d5618be8028223e14193cf94dbda707d9adc01b /src/evdev.h
parentRemove obsolete FIXME (diff)
downloadxf86-input-evdev-6bcbbc0411cf3466edeb1fcbb393290cadfd3082.tar.gz
xf86-input-evdev-6bcbbc0411cf3466edeb1fcbb393290cadfd3082.tar.bz2
xf86-input-evdev-6bcbbc0411cf3466edeb1fcbb393290cadfd3082.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> (cherry picked from commit 64554e4799a697d37dfd8be480f8eee636b9bea1)
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);