From bd405ddc83b9ad1ceed47f572245fccae598e6bb Mon Sep 17 00:00:00 2001 From: Chris Salch Date: Sun, 17 Aug 2008 12:31:23 -0500 Subject: Adding in DragLockButtons functionality. Signed-off-by: Peter Hutterer --- src/evdev.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/evdev.h') diff --git a/src/evdev.h b/src/evdev.h index a0a336a..74fbfc6 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -77,6 +77,12 @@ typedef struct { Time expires; /* time of expiry */ Time timeout; } emulateMB; + struct { + int meta; /* meta key to lock any button */ + BOOL meta_state; /* meta_button state */ + unsigned int lock_pair[EVDEV_MAXBUTTONS]; /* specify a meta/lock pair */ + BOOL lock_state[EVDEV_MAXBUTTONS]; /* state of any locked buttons */ + } dragLock; struct { BOOL enabled; int button; @@ -113,5 +119,7 @@ void EvdevWheelEmuPreInit(InputInfoPtr pInfo); BOOL EvdevWheelEmuFilterButton(InputInfoPtr pInfo, unsigned int button, int value); BOOL EvdevWheelEmuFilterMotion(InputInfoPtr pInfo, struct input_event *pEv); - +/* Draglock code */ +void EvdevDragLockInit(InputInfoPtr pInfo); +BOOL EvdevDragLockFilterEvent(InputInfoPtr pInfo, unsigned int button, int value); #endif -- cgit v1.2.3