x11 implementation

This commit is contained in:
Thomas Bernard
2018-06-26 17:30:16 +02:00
parent a514f7e9a2
commit 77f36a1f8e
6 changed files with 559 additions and 0 deletions

View File

@@ -810,12 +810,14 @@ word Key_for_scancode(word scancode)
word Get_Key_modifiers(void)
{
word mod = 0;
#if defined(WIN32)
if (GetKeyState(VK_SHIFT) & 0x8000)
mod |= MOD_SHIFT;
if (GetKeyState(VK_CONTROL) & 0x8000)
mod |= MOD_CTRL;
if (GetKeyState(VK_MENU) & 0x8000)
mod |= MOD_ALT;
#endif
return mod;
}
#endif