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/window.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/window.h') diff --git a/src/window.h b/src/window.h index 978278c..eff00ab 100644 --- a/src/window.h +++ b/src/window.h @@ -9,6 +9,7 @@ enum imv_event_type { IMV_EVENT_CLOSE, IMV_EVENT_RESIZE, IMV_EVENT_KEYBOARD, + IMV_EVENT_KEYBOARD_MODS, IMV_EVENT_MOUSE_MOTION, IMV_EVENT_MOUSE_BUTTON, IMV_EVENT_MOUSE_SCROLL, @@ -28,6 +29,11 @@ struct imv_event { int scancode; bool pressed; } keyboard; + struct { + int depressed; + int latched; + int locked; + } keyboard_mods; struct { double x, y, dx, dy; } mouse_motion; -- cgit v1.2.3