linux hold modifier

This commit is contained in:
insofaras 2016-06-07 18:53:23 +01:00
parent e6047cb7b4
commit 62aa4dac04
1 changed files with 2 additions and 0 deletions

View File

@ -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;