mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 13:03:52 +00:00
Mir: Fix modifier bit translation
This commit is contained in:
parent
d81946a35b
commit
fd72eb917e
@ -117,11 +117,11 @@ static int mirModToGLFWMod(uint32_t mods)
|
||||
|
||||
if (mods & mir_input_event_modifier_alt)
|
||||
publicMods |= GLFW_MOD_ALT;
|
||||
else if (mods & mir_input_event_modifier_shift)
|
||||
if (mods & mir_input_event_modifier_shift)
|
||||
publicMods |= GLFW_MOD_SHIFT;
|
||||
else if (mods & mir_input_event_modifier_ctrl)
|
||||
if (mods & mir_input_event_modifier_ctrl)
|
||||
publicMods |= GLFW_MOD_CONTROL;
|
||||
else if (mods & mir_input_event_modifier_meta)
|
||||
if (mods & mir_input_event_modifier_meta)
|
||||
publicMods |= GLFW_MOD_SUPER;
|
||||
|
||||
return publicMods;
|
||||
|
Loading…
Reference in New Issue
Block a user