From 9793de81373bb78b9ddbb2487e0af5d2ddd0b246 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 7 Aug 2008 16:53:51 +0930 Subject: Expose wheel emulation through device properties. Don't enable wheel emulation with 0 inertia - bad things happen. --- src/evdev.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/evdev.h') diff --git a/src/evdev.h b/src/evdev.h index 83f03f4..0afa44c 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -102,6 +102,14 @@ unsigned int EvdevUtilButtonEventToButtonNumber(int code); Atom EvdevMBEmuInitProperty(DeviceIntPtr, char*); Atom EvdevMBEmuInitPropertyTimeout(DeviceIntPtr, char*); BOOL EvdevMBEmuSetProperty(DeviceIntPtr, Atom, XIPropertyValuePtr); + +Atom EvdevWheelEmuInitProperty(DeviceIntPtr, char*); +Atom EvdevWheelEmuInitPropertyXMap(DeviceIntPtr, char*); +Atom EvdevWheelEmuInitPropertyYMap(DeviceIntPtr, char*); +Atom EvdevWheelEmuInitPropertyInertia(DeviceIntPtr, char*); +Atom EvdevWheelEmuInitPropertyButton(DeviceIntPtr, char*); + +BOOL EvdevWheelEmuSetProperty(DeviceIntPtr, Atom, XIPropertyValuePtr); #endif /* Mouse Wheel emulation */ @@ -109,4 +117,5 @@ void EvdevWheelEmuPreInit(InputInfoPtr pInfo); BOOL EvdevWheelEmuFilterButton(InputInfoPtr pInfo, unsigned int button, int value); BOOL EvdevWheelEmuFilterMotion(InputInfoPtr pInfo, struct input_event *pEv); + #endif -- cgit v1.2.3