mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(os): implement OsGuiIsModifierKeyDown
This commit is contained in:
parent
e633127a0f
commit
795c5cb3b5
1 changed files with 8 additions and 1 deletions
|
|
@ -20,7 +20,14 @@ void* OsGuiGetWindow(int32_t type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OsGuiIsModifierKeyDown(int32_t key) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue