mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-12 06:35:04 +08:00
@@ -909,7 +909,10 @@ CMSWindowsKeyState::pollPressedKeys(KeyButtonSet& pressedKeys) const
|
||||
}
|
||||
for (KeyButton i = 1; i < 256; ++i) {
|
||||
if ((keyState[i] & 0x80) != 0) {
|
||||
pressedKeys.insert(i);
|
||||
KeyButton keyButton = virtualKeyToButton(i);
|
||||
if (keyButton != 0) {
|
||||
pressedKeys.insert(keyButton);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1344,6 +1347,12 @@ CMSWindowsKeyState::getKeyID(UINT virtualKey, KeyButton button)
|
||||
return s_virtualKey[virtualKey];
|
||||
}
|
||||
|
||||
UINT
|
||||
CMSWindowsKeyState::mapButtonToVirtualKey(KeyButton button) const
|
||||
{
|
||||
return m_buttonToVK[button];
|
||||
}
|
||||
|
||||
KeyID
|
||||
CMSWindowsKeyState::getIDForKey(CKeyMap::KeyItem& item,
|
||||
KeyButton button, UINT virtualKey,
|
||||
|
||||
Reference in New Issue
Block a user