aboutsummaryrefslogtreecommitdiff
path: root/src/window.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/window.h
parent9850d9c6a2be489a912ff3c98c83eef77198fccc (diff)
downloadimv-9e1d6e24a028ec96fb11ba943769764665fb024c.tar.gz
wl_window: Maintain keyboard modifiers state
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h6
1 files changed, 6 insertions, 0 deletions
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,
@@ -29,6 +30,11 @@ struct imv_event {
bool pressed;
} keyboard;
struct {
+ int depressed;
+ int latched;
+ int locked;
+ } keyboard_mods;
+ struct {
double x, y, dx, dy;
} mouse_motion;
struct {