aboutsummaryrefslogtreecommitdiff
path: root/src/keyboard.h
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-08-23 23:34:02 +0100
committerHarry Jeffery <harry@exec64.co.uk>2019-08-23 23:34:02 +0100
commit9e1d6e24a028ec96fb11ba943769764665fb024c (patch)
tree50eaaf19bbff64e6309ebe8c2b1ab1c4b58f3df9 /src/keyboard.h
parent9850d9c6a2be489a912ff3c98c83eef77198fccc (diff)
downloadimv-9e1d6e24a028ec96fb11ba943769764665fb024c.tar.gz
wl_window: Maintain keyboard modifiers state
Diffstat (limited to 'src/keyboard.h')
-rw-r--r--src/keyboard.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/keyboard.h b/src/keyboard.h
index 7bbb202..05036c4 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -15,6 +15,10 @@ void imv_keyboard_free(struct imv_keyboard *keyboard);
/* Notify the keyboard of the state of a key */
void imv_keyboard_update_key(struct imv_keyboard *keyboard, int scancode, bool pressed);
+/* Notify the keyboard of the state of the modifiers */
+void imv_keyboard_update_mods(struct imv_keyboard *keyboard,
+ int depressed, int latched, int locked);
+
/* Write the null-terminated name of the key corresponding to scancode into buf */
size_t imv_keyboard_keyname(struct imv_keyboard *keyboard, int scancode, char *buf, size_t buflen);