mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +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)
|
if (mods & mir_input_event_modifier_alt)
|
||||||
publicMods |= GLFW_MOD_ALT;
|
publicMods |= GLFW_MOD_ALT;
|
||||||
else if (mods & mir_input_event_modifier_shift)
|
if (mods & mir_input_event_modifier_shift)
|
||||||
publicMods |= GLFW_MOD_SHIFT;
|
publicMods |= GLFW_MOD_SHIFT;
|
||||||
else if (mods & mir_input_event_modifier_ctrl)
|
if (mods & mir_input_event_modifier_ctrl)
|
||||||
publicMods |= GLFW_MOD_CONTROL;
|
publicMods |= GLFW_MOD_CONTROL;
|
||||||
else if (mods & mir_input_event_modifier_meta)
|
if (mods & mir_input_event_modifier_meta)
|
||||||
publicMods |= GLFW_MOD_SUPER;
|
publicMods |= GLFW_MOD_SUPER;
|
||||||
|
|
||||||
return publicMods;
|
return publicMods;
|
||||||
|
Loading…
Reference in New Issue
Block a user