fixes for win32 keyboard.

This commit is contained in:
crs
2002-05-05 19:38:09 +00:00
parent 2d7e3e8a61
commit 7ebaab42e0
2 changed files with 106 additions and 43 deletions

View File

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