feat(os): implement OsGuiIsModifierKeyDown

This commit is contained in:
VDm 2025-08-08 00:59:46 +04:00
parent e633127a0f
commit 795c5cb3b5

View File

@ -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;
}