diff options
Diffstat (limited to 'src/evdev.h')
-rw-r--r-- | src/evdev.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/evdev.h b/src/evdev.h index a0a336a..74fbfc6 100644 --- a/src/evdev.h +++ b/src/evdev.h @@ -78,6 +78,12 @@ typedef struct { 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; int button_state; @@ -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 |