mirror of
https://github.com/glfw/glfw.git
synced 2024-11-12 17:51:48 +00:00
Included extended flag in Win32 scan code.
This commit is contained in:
parent
8061bb54fe
commit
1900d9a656
@ -516,7 +516,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
|
|||||||
case WM_KEYDOWN:
|
case WM_KEYDOWN:
|
||||||
case WM_SYSKEYDOWN:
|
case WM_SYSKEYDOWN:
|
||||||
{
|
{
|
||||||
const int scancode = (lParam >> 16) & 0xff;
|
const int scancode = (lParam >> 16) & 0x1ff;
|
||||||
const int key = translateKey(wParam, lParam);
|
const int key = translateKey(wParam, lParam);
|
||||||
if (key == _GLFW_KEY_INVALID)
|
if (key == _GLFW_KEY_INVALID)
|
||||||
break;
|
break;
|
||||||
@ -551,7 +551,7 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
|
|||||||
case WM_SYSKEYUP:
|
case WM_SYSKEYUP:
|
||||||
{
|
{
|
||||||
const int mods = getKeyMods();
|
const int mods = getKeyMods();
|
||||||
const int scancode = (lParam >> 16) & 0xff;
|
const int scancode = (lParam >> 16) & 0x1ff;
|
||||||
const int key = translateKey(wParam, lParam);
|
const int key = translateKey(wParam, lParam);
|
||||||
if (key == _GLFW_KEY_INVALID)
|
if (key == _GLFW_KEY_INVALID)
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user