summaryrefslogtreecommitdiff
path: root/include/events.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-06-18 14:40:20 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-06-18 15:50:47 +1000
commite92dcb6ce07aa3cfb53e8bad5701481c106c4094 (patch)
tree4008c4a7c54a0f193830412ff04c52efac2d78f9 /include/events.h
parent280b7f92d729ec910ffa3d18dce7bbc215be7a3c (diff)
input: unify button numbers on master devices.
Master devices provide the union of all attached slave devices' buttons, i.e. the number of buttons on the master device is always the number of buttons of the slave device with the highest number of buttons. When slaves are attached or detached, the master device adjusts the button number to reflect the new buttons. On a slave switch, this slave's button labels are copied into the master (up to slave->num_buttons). The remaining button labels (if any) stay as they are. Thus, if any of the higher buttons is still pressed, it reflects the label of the last pressed device that provided this button. If two devices press the same button and it is differently labelled the last pressed one will be reflected in the master device. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include/events.h')
-rw-r--r--include/events.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/events.h b/include/events.h
index d44188b67..f6405c5c2 100644
--- a/include/events.h
+++ b/include/events.h
@@ -119,6 +119,8 @@ typedef struct
* pointer event or a keyboard event */
#define DEVCHANGE_POINTER_EVENT 0x4
#define DEVCHANGE_KEYBOARD_EVENT 0x8
+/* device capabilities changed */
+#define DEVCHANGE_DEVICE_CHANGE 0x10
/**
* Sent whenever a device's capabilities have changed.