diff options
| author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-06-14 08:23:56 +1000 |
|---|---|---|
| committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-06-14 08:25:01 +1000 |
| commit | b2fb9f81a2a7af8656309420facd58ab610d5da1 (patch) | |
| tree | 693d74dc04b3756bcca6d75142f760650c82200e | |
| parent | db98b817355ed12609cff077c4a12948ac41f88d (diff) | |
Include button state in XIButtonClasses.
Without including the state in a button class, it is impossible to know the
state of a device until this device has pressed or released another button
(and thus sends an event).
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| -rw-r--r-- | XI2proto.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/XI2proto.txt b/XI2proto.txt index ed50d43..d5fac4e 100644 --- a/XI2proto.txt +++ b/XI2proto.txt @@ -225,7 +225,8 @@ XI2. Clients should ignore this data. BUTTONCLASS { type: ButtonClass length: CARD16 sourceid: CARD16 - num_buttons: CARD16 + buttons_len: CARD16 + state: SETofBUTTONMASK buttons: LISTofATOM } KEYCLASS { type: KeyClass @@ -301,6 +302,11 @@ XI2. Clients should ignore this data. List of Atoms specifying the type of each button. An atom of None specifies an unnamed button. Buttons are listed in the device-native order and potential button mappings are ignored. + state + The current button mask for this device. Each bit representing a + button is 1 if this button is logically down, or 0 otherwise. State a + multiple of 4-byte units and always contains at least num_buttons + bits. KeyClass: type |
