From 9e1d6e24a028ec96fb11ba943769764665fb024c Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Fri, 23 Aug 2019 23:34:02 +0100 Subject: wl_window: Maintain keyboard modifiers state --- src/keyboard.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/keyboard.h') 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); -- cgit v1.2.3