summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-11-18 12:35:27 +1000
committerDaniel Stone <daniels@collabora.com>2016-11-21 11:07:12 +0000
commitb4636b5e606177c5a771fcf4349fbf321fdf071c (patch)
tree5a08327233ed3eec570ed821ff5973c24da14169
parent5c48aac33b191b30f36e777be836441e211166b6 (diff)
protocol: spell out that we're using linux/input-event-codes.h button codes
Because we already rely on it in the callers anyway. This is a retrofit, which is not ideal but I'm not sure any compositor out there uses anything else. Might as well define it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
-rw-r--r--protocol/wayland.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 8311a18..c516374 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -1872,6 +1872,14 @@
enter event.
The time argument is a timestamp with millisecond
granularity, with an undefined base.
+
+ The button is a button code as defined in the Linux kernel's
+ linux/input-event-codes.h header file, e.g. BTN_LEFT.
+
+ Any 16-bit button code value is reserved for future additions to the
+ kernel's event code list. All other button codes above 0xFFFF are
+ currently undefined but may be used in future versions of this
+ protocol.
</description>
<arg name="serial" type="uint" summary="serial number of the button event"/>
<arg name="time" type="uint" summary="timestamp with millisecond granularity"/>