mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 04:45:03 +08:00
fixes for win32 keyboard.
This commit is contained in:
@@ -1006,9 +1006,6 @@ void CMSWindowsPrimaryScreen::updateKey(
|
||||
case VK_SCROLL:
|
||||
// toggle keys
|
||||
m_keys[vkCode] |= 0x80;
|
||||
if ((m_keys[vkCode] & 0x01) == 0) {
|
||||
m_keys[vkCode] |= 0x01;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1052,9 +1049,7 @@ void CMSWindowsPrimaryScreen::updateKey(
|
||||
case VK_SCROLL:
|
||||
// toggle keys
|
||||
m_keys[vkCode] &= ~0x80;
|
||||
if ((m_keys[vkCode] & 0x01) != 0) {
|
||||
m_keys[vkCode] &= ~0x01;
|
||||
}
|
||||
m_keys[vkCode] ^= 0x01;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user