Added super modifier bit.

Edited during merge.
This commit is contained in:
Noel Cower
2013-05-23 13:22:27 +02:00
committed by Camilla Berglund
parent 3bcffba24a
commit eff85f9500
5 changed files with 13 additions and 0 deletions
+4
View File
@@ -116,6 +116,8 @@ static int getKeyMods(void)
mods |= GLFW_MOD_CONTROL;
if (GetKeyState(VK_MENU) & (1 << 31))
mods |= GLFW_MOD_ALT;
if ((GetKeyState(VK_LWIN) | GetKeyState(VK_RWIN)) & (1 << 31))
mods |= GLFW_MOD_SUPER;
return mods;
}
@@ -132,6 +134,8 @@ static int getAsyncKeyMods(void)
mods |= GLFW_MOD_CONTROL;
if (GetAsyncKeyState(VK_MENU) & (1 << 31))
mods |= GLFW_MOD_ALT;
if ((GetAsyncKeyState(VK_LWIN) | GetAsyncKeyState(VK_RWIN)) & (1 << 31))
mods |= GLFW_MOD_SUPER;
return mods;
}