diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-13 15:30:50 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-13 16:04:41 +1000 |
commit | c455db2c251770a729d2747e6f05d53c2563b428 (patch) | |
tree | 94cfae63086224d1dcb41be84007f8adf8f999e3 /XI2.h | |
parent | f345258bf44e018e04643ccc6f02f5e40267d78c (diff) |
XI2: Split up raw events into multiple event types.
Instead of a single XI_RawEvent type with subtypes to represent the actual
event, split up the event into XI_RawButtonPress, XI_RawButtonRelease, etc.
This way clients can select for specific raw events only instead of all of
them at once.
Note that raw events may be selected on master devices too, the server will
route them through master devices.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'XI2.h')
-rw-r--r-- | XI2.h | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -130,9 +130,13 @@ #define XI_FocusIn 9 #define XI_FocusOut 10 #define XI_HierarchyChanged 11 -#define XI_RawEvent 12 -#define XI_PropertyEvent 13 -#define XI_LASTEVENT XI_PropertyEvent +#define XI_PropertyEvent 12 +#define XI_RawKeyPress 13 +#define XI_RawKeyRelease 14 +#define XI_RawButtonPress 15 +#define XI_RawButtonRelease 16 +#define XI_RawMotion 17 +#define XI_LASTEVENT XI_RawMotion /* NOTE: XI2LASTEVENT in xserver/include/inputstr.h must be the same value * as XI_LASTEVENT if the server is supposed to handle masks etc. for this * type of event. */ @@ -152,7 +156,11 @@ #define XI_FocusInMask (1 << XI_FocusIn) #define XI_FocusOutMask (1 << XI_FocusOut) #define XI_HierarchyChangedMask (1 << XI_HierarchyChanged) -#define XI_RawEventMask (1 << XI_RawEvent) #define XI_PropertyEventMask (1 << XI_PropertyEvent) +#define XI_RawKeyPressMask (1 << XI_RawKeyPress) +#define XI_RawKeyReleaseMask (1 << XI_RawKeyRelease) +#define XI_RawButtonPressMask (1 << XI_RawButtonPress) +#define XI_RawButtonReleaseMask (1 << XI_RawButtonRelease) +#define XI_RawMotionMask (1 << XI_RawMotion) #endif /* _XI2_H_ */ |