implement Get_Key_modifiers for Win32
This commit is contained in:
parent
84fdc001cd
commit
30aac19f27
@ -809,6 +809,13 @@ word Key_for_scancode(word scancode)
|
|||||||
}
|
}
|
||||||
word Get_Key_modifiers(void)
|
word Get_Key_modifiers(void)
|
||||||
{
|
{
|
||||||
return 0;
|
word mod = 0;
|
||||||
|
if (GetKeyState(VK_SHIFT) & 0x8000)
|
||||||
|
mod |= MOD_SHIFT;
|
||||||
|
if (GetKeyState(VK_CONTROL) & 0x8000)
|
||||||
|
mod |= MOD_CTRL;
|
||||||
|
if (GetKeyState(VK_MENU) & 0x8000)
|
||||||
|
mod |= MOD_ALT;
|
||||||
|
return mod;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user