mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-10-27 22:36:05 +03:00
feat(os): implement OsGuiIsModifierKeyDown
This commit is contained in:
parent
e633127a0f
commit
795c5cb3b5
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user