mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-12 17:24:40 +03:00
feat(os): implement OsGuiIsModifierKeyDown
This commit is contained in:
1 parent
e633127a0f
commit
795c5cb3b5
1 file changed
+8
-1
+8
-1
@@ -20,7 +20,14 @@ void* OsGuiGetWindow(int32_t type) {
|
||||
}
|
||||
|
||||
bool OsGuiIsModifierKeyDown(int32_t key) {
|
||||
// TODO
|
||||
switch (key) {
|
||||
case 0:
|
||||
return (GetKeyState(17) & 0xF000) != 0;
|
||||
case 1:
|
||||
return (GetKeyState(16) & 0xF000) != 0;
|
||||
case 2:
|
||||
return (GetKeyState(18) & 0xF000) != 0;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user