diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2008-08-07 16:53:51 +0930 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-08-08 15:50:55 +0930 |
commit | 9793de81373bb78b9ddbb2487e0af5d2ddd0b246 (patch) | |
tree | c63725b844be32413bd5280184b2e963e8cc3ea2 /src/evdev.h | |
parent | Adding mouse wheel emulation code. (diff) | |
download | xf86-input-evdev-9793de81373bb78b9ddbb2487e0af5d2ddd0b246.tar.gz xf86-input-evdev-9793de81373bb78b9ddbb2487e0af5d2ddd0b246.tar.bz2 xf86-input-evdev-9793de81373bb78b9ddbb2487e0af5d2ddd0b246.zip |
Expose wheel emulation through device properties.
Don't enable wheel emulation with 0 inertia - bad things happen.
Diffstat (limited to 'src/evdev.h')
-rw-r--r-- | src/evdev.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 |