diff options
author | Chris Salch <emeraldd.chris@gmail.com> | 2008-08-17 12:31:23 -0500 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-08-18 12:03:07 +0930 |
commit | bd405ddc83b9ad1ceed47f572245fccae598e6bb (patch) | |
tree | a0a976177cc0e875a015bcf2a366aaf7cb508ad9 /src/evdev.h | |
parent | 36d702006d5aace50083ca52b7065d465b497077 (diff) |
Adding in DragLockButtons functionality.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
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 |