diff options
author | Keith Packard <keithp@keithp.com> | 2010-07-06 23:54:54 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-07-06 23:54:54 -0400 |
commit | 2307ab5bc9365ebbe04568edb7c7620a23689b70 (patch) | |
tree | 1f57e8d8ff0c6ad0f3663eec0caf07ede501f5c2 /include | |
parent | c65280ce8df4836bd7424a90482e8aa00ab6f447 (diff) | |
parent | fd4f5059f08165a726071dc9f1ca877038292f6f (diff) |
Merge remote branch 'whot/for-keith'
Diffstat (limited to 'include')
-rw-r--r-- | include/input.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/input.h b/include/input.h index 0a08ea425..55b1537f6 100644 --- a/include/input.h +++ b/include/input.h @@ -228,14 +228,19 @@ typedef struct _InputAttributes { #define ATTR_TOUCHPAD (1<<4) #define ATTR_TOUCHSCREEN (1<<5) -/* Key has been run through all input processing and events sent to clients. */ +/* Key/Button has been run through all input processing and events sent to clients. */ #define KEY_PROCESSED 1 -/* Key has not been fully processed, no events have been sent. */ +#define BUTTON_PROCESSED 1 +/* Key/Button has not been fully processed, no events have been sent. */ #define KEY_POSTED 2 +#define BUTTON_POSTED 2 extern void set_key_down(DeviceIntPtr pDev, int key_code, int type); extern void set_key_up(DeviceIntPtr pDev, int key_code, int type); extern int key_is_down(DeviceIntPtr pDev, int key_code, int type); +extern void set_button_down(DeviceIntPtr pDev, int button, int type); +extern void set_button_up(DeviceIntPtr pDev, int button, int type); +extern int button_is_down(DeviceIntPtr pDev, int button, int type); extern void InitCoreDevices(void); extern void InitXTestDevices(void); |