aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-26 19:12:50 +0100
committerGitHub <noreply@github.com>2018-05-26 19:12:50 +0100
commit4dfcbcf5dd17963c83e839ac86f684ac10be3a70 (patch)
tree16e9c083c6673f7b3aa5b49734e1208ceb946ccc /include
parent0eec0c73033bc3538f693f79e0fc146250112cec (diff)
parent9971d06afbfec33ffb0dbf486799b67bc6d67046 (diff)
Merge pull request #1003 from acrisci/document-keyboard-events
document key and modifier signals
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_keyboard.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_keyboard.h b/include/wlr/types/wlr_keyboard.h
index bfb4e611..97288508 100644
--- a/include/wlr/types/wlr_keyboard.h
+++ b/include/wlr/types/wlr_keyboard.h
@@ -59,7 +59,20 @@ struct wlr_keyboard {
} repeat_info;
struct {
+ /**
+ * The `key` event signals with a `wlr_event_keyboard_key` event that a
+ * key has been pressed or released on the keyboard. This event is
+ * emitted before the xkb state of the keyboard has been updated
+ * (including modifiers).
+ */
struct wl_signal key;
+
+ /**
+ * The `modifiers` event signals that the modifier state of the
+ * `wlr_keyboard` has been updated. At this time, you can read the
+ * modifier state of the `wlr_keyboard` and handle the updated state by
+ * sending it to clients.
+ */
struct wl_signal modifiers;
struct wl_signal keymap;
struct wl_signal repeat_info;