From 62aa4dac047f6e3c035ec89f2cc224992582c5db Mon Sep 17 00:00:00 2001 From: insofaras Date: Tue, 7 Jun 2016 18:53:23 +0100 Subject: [PATCH] linux hold modifier --- linux_4ed.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux_4ed.cpp b/linux_4ed.cpp index 439bbc24..09d7250f 100644 --- a/linux_4ed.cpp +++ b/linux_4ed.cpp @@ -2095,6 +2095,8 @@ LinuxHandleX11Events(void) PrevEvent.xkey.keycode == Event.xkey.keycode); b8 mods[MDFR_INDEX_COUNT] = {}; + mods[MDFR_HOLD_INDEX] = is_hold; + if(Event.xkey.state & ShiftMask) mods[MDFR_SHIFT_INDEX] = 1; if(Event.xkey.state & ControlMask) mods[MDFR_CONTROL_INDEX] = 1; if(Event.xkey.state & LockMask) mods[MDFR_CAPS_INDEX] = 1;