diff options
| author | Daniel Stone <daniel@fooishbar.org> | 2012-05-30 16:31:48 +0100 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-05-31 14:02:20 -0400 |
| commit | 872d074a431a28ff5dcb09384d07970812432c82 (patch) | |
| tree | 81a7c68cf9a480a682e002d829c31bf80dc811dc /protocol | |
| parent | wl_keyboard: Add modifier event (diff) | |
| download | wayland-872d074a431a28ff5dcb09384d07970812432c82.tar wayland-872d074a431a28ff5dcb09384d07970812432c82.tar.gz wayland-872d074a431a28ff5dcb09384d07970812432c82.tar.bz2 wayland-872d074a431a28ff5dcb09384d07970812432c82.tar.lz wayland-872d074a431a28ff5dcb09384d07970812432c82.tar.xz wayland-872d074a431a28ff5dcb09384d07970812432c82.tar.zst wayland-872d074a431a28ff5dcb09384d07970812432c82.zip | |
Add key_state and button_state enums
Rather than hardcoding 0 and 1 everywhere.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'protocol')
| -rw-r--r-- | protocol/wayland.xml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/protocol/wayland.xml b/protocol/wayland.xml index eb09849..d9fb5c2 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -818,6 +818,15 @@ <arg name="surface_y" type="fixed"/> </event> + <enum name="button_state"> + <description summary="physical button state"> + Describes the physical state of a button which provoked the button + event. + </description> + <entry name="released" value="0" summary="button is not pressed"/> + <entry name="pressed" value="1" summary="button is pressed"/> + </enum> + <event name="button"> <description summary="pointer button event"> Mouse button click and release notifications. The location @@ -862,6 +871,16 @@ <arg name="surface" type="object" interface="wl_surface"/> </event> + <enum name="key_state"> + <description summary="physical key state"> + Describes the physical state of a key which provoked the key event. + When a key repeats, the sequence is down -> repeat -> repeat -> up. + </description> + <entry name="released" value="0" summary="key is not pressed"/> + <entry name="pressed" value="1" summary="key is pressed"/> + <entry name="repeat" value="2" summary="key is pressed and repeating"/> + </enum> + <event name="key"> <description summary="key event"> A key was pressed or released. |
