summaryrefslogtreecommitdiff
path: root/XI2.h
AgeCommit message (Collapse)AuthorFilesLines
2010-10-08Add TouchStateNotify/TouchMotion/TouchClass, bump to 2.1Daniel Stone1-2/+23
Introduce multitouch support through a new TouchClass, as well as new TouchBegin, TouchEnd and TouchMotion events. Bump to version 2.1. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2009-07-20XI2: remove Keysym grabs, use Keycode grabs instead.Peter Hutterer1-2/+2
Keysym grabs are tricky to get right for applications that are more complicated than demo applications. otoh, we know keycode grabs are working. So let's go with keycode grabs for now and add keysym grabs later when we've sorted out the details. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-14Add the enter/leave detail defines, same as the core protocol ones.Peter Hutterer1-0/+10
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-14Formatting fix, s/tabs/spaces/Peter Hutterer1-2/+2
2009-07-14Device{,Raw}Event: Add flags field.Daniel Stone1-0/+5
Add a flags member to DeviceEvent and DeviceKeyEvent; the only currently defined flag is KeyRepeat, indicating a repeat event (a la XKB detectable autorepeat), which is only valid for key events. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-13XI2: Split up raw events into multiple event types.Peter Hutterer1-4/+12
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>
2009-07-13Fix XIMaskLen macro.Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-12Add note that bumping XI_LASTEVENT requires changes to the server.Peter Hutterer1-0/+3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-12Ensure XIAnyModifier is an unsigned int.Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-08Rename XICreateMaster to XIAddMaster for consistency.Peter Hutterer1-1/+1
We use add/remove for slave devices, add/remove for the hierarchy changed flags, so let's use add/remove to create a new device as well. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-01Move the XI2 index into versions[] over to XI2.hPeter Hutterer1-0/+9
2009-05-28Mirror the core enter/focus modes and add the passive grab mode.Peter Hutterer1-0/+8
If an enter/focus grabs activates (or deactivates), send an extra set of enter/focus in (or leave/focus out) events to the grabbing client with mode XIPassiveGrabNotify. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-27Add Enter/FocusIn passive grabs.Peter Hutterer1-0/+2
Same behaviour as button/keysym grabs but triggered on enter/leave and focus in/out events.
2009-05-16XI2.h: remove XI2Mask, add XISetMask and friends.Peter Hutterer1-2/+6
XISetMask, XIClearMask, XIMaskIsSet serve to set, clear or check a bit in the provided array. XIMaskLen is a macro to get the minimum length of a mask for a given event type. They are expected to be common ways to deal with event masks, i.e. clients will do: unsigned char mask[XIMaskLen(XI_ButtonRelease)] = {0}; XISetMask(mask, XI_ButtonPress) XISetMask(mask, XI_ButtonRelease) Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-16Add XIAnyButton and XIAnyKeysym.Peter Hutterer1-0/+2
2009-05-12Remove superfluous "Device" from protocol requests and events.Peter Hutterer1-2/+2
Anything with prefix XI is per-device anyway.
2009-05-11XI2proto.h: doxygen-ifyPeter Hutterer1-0/+1
2009-05-07Prefix all XI2 constants with "XI" -> inputproto 1.99.9.8Peter Hutterer1-47/+40
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-07Add XI2 property requests.Peter Hutterer1-1/+7
Basically the same as XI 1.5, save the 16 bit deviceids.
2009-05-07XI2: add passive grabs.Peter Hutterer1-0/+7
Most notably XI2 provides keysym grabs instead of keycode grabs.
2009-04-20Add XIAllowEvents.Peter Hutterer1-0/+7
Basically the same as the core protocol AllowEvents.
2009-03-20Move XI_2_Major/Minor to XI2.hPeter Hutterer1-0/+4
2009-03-20Move AttachToMaster, Floating to XI2.hPeter Hutterer1-0/+3
2009-03-20Move CH_* constants to xi2Peter Hutterer1-0/+6
2009-03-11Add XI2.h and XI2proto.h, and a few required defines to XI.hPeter Hutterer1-0/+103