Lines Matching refs:scancode
712 int key, scancode;
716 scancode = (HIWORD(lParam) & (KF_EXTENDED | 0xff));
717 if (!scancode)
719 // NOTE: Some synthetic key messages have a scancode of zero
720 // HACK: Map the virtual key back to a usable scancode
721 scancode = MapVirtualKeyW((UINT) wParam, MAPVK_VK_TO_VSC);
724 // HACK: Alt+PrtSc has a different scancode than just PrtSc
725 if (scancode == 0x54)
726 scancode = 0x137;
728 // HACK: Ctrl+Pause has a different scancode than just Pause
729 if (scancode == 0x146)
730 scancode = 0x45;
733 if (scancode == 0x136)
734 scancode = 0x36;
736 key = _glfw.win32.keycodes[scancode];
788 _glfwInputKey(window, GLFW_KEY_LEFT_SHIFT, scancode, action, mods);
789 _glfwInputKey(window, GLFW_KEY_RIGHT_SHIFT, scancode, action, mods);
794 _glfwInputKey(window, key, scancode, GLFW_PRESS, mods);
795 _glfwInputKey(window, key, scancode, GLFW_RELEASE, mods);
798 _glfwInputKey(window, key, scancode, action, mods);
2156 const int scancode = _glfw.win32.scancodes[key];
2163 _glfwInputKey(window, key, scancode, GLFW_RELEASE, getKeyMods());
2270 const char* _glfwGetScancodeNameWin32(int scancode)
2272 if (scancode < 0 || scancode > (KF_EXTENDED | 0xff))
2274 _glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode %i", scancode);
2278 const int key = _glfw.win32.keycodes[scancode];