Merge pull request #1003 from acrisci/document-keyboard-events

document key and modifier signals
This commit is contained in:
emersion 2018-05-26 19:12:50 +01:00 committed by GitHub
commit 4dfcbcf5dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -59,7 +59,20 @@ struct wlr_keyboard {
} repeat_info; } repeat_info;
struct { 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; 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 modifiers;
struct wl_signal keymap; struct wl_signal keymap;
struct wl_signal repeat_info; struct wl_signal repeat_info;