aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.h
diff options
context:
space:
mode:
authorChris Salch <emeraldd.chris@gmail.com>2008-08-04 20:19:47 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2008-08-06 16:36:51 +0930
commit40e1474d84c09d93197ac5db34a88e654386e68f (patch)
treef782fa7dbcc08cde80feb68b9a0c3ab8b90850e9 /src/evdev.h
parentActually close the fd on DEVICE_CLOSE (bug#16948) (diff)
downloadxf86-input-evdev-40e1474d84c09d93197ac5db34a88e654386e68f.tar.gz
xf86-input-evdev-40e1474d84c09d93197ac5db34a88e654386e68f.tar.bz2
xf86-input-evdev-40e1474d84c09d93197ac5db34a88e654386e68f.zip
Adding a function to map button events to button numbers.
Remove code duplication, let the mapping function hand us the actual button event to be passed up to the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.h')
-rw-r--r--src/evdev.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/evdev.h b/src/evdev.h
index bc79287..56983c2 100644
--- a/src/evdev.h
+++ b/src/evdev.h
@@ -80,6 +80,9 @@ void EvdevMBEmuBlockHandler(pointer, struct timeval**, pointer);
void EvdevMBEmuPreInit(InputInfoPtr);
void EvdevMBEmuFinalize(InputInfoPtr);
void EvdevMBEmuEnable(InputInfoPtr, BOOL);
+
+unsigned int EvdevUtilButtonEventToButtonNumber(int code);
+
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 3
Atom EvdevMBEmuInitProperty(DeviceIntPtr, char*);
Atom EvdevMBEmuInitPropertyTimeout(DeviceIntPtr, char*);