src/video/windows/SDL_windowsevents.c
changeset 7060 9d96148c2e3e
parent 7037 3fedf1f25b94
child 7089 257fc4e541e1
     1.1 --- a/src/video/windows/SDL_windowsevents.c	Mon Apr 08 18:37:50 2013 -0400
     1.2 +++ b/src/video/windows/SDL_windowsevents.c	Wed Apr 10 14:11:26 2013 -0700
     1.3 @@ -73,7 +73,8 @@
     1.4  	char bIsExtended;
     1.5  	int nScanCode = ( lParam >> 16 ) & 0xFF;
     1.6  
     1.7 -	if ( nScanCode == 0 )
     1.8 +	/* 0x45 here to work around both pause and numlock sharing the same scancode, so use the VK key to tell them apart */
     1.9 +	if ( nScanCode == 0 || nScanCode == 0x45 )
    1.10  	{
    1.11  		switch( wParam )
    1.12  		{
    1.13 @@ -82,6 +83,8 @@
    1.14  		case VK_SELECT: return SDL_SCANCODE_SELECT;
    1.15  		case VK_EXECUTE: return SDL_SCANCODE_EXECUTE;
    1.16  		case VK_HELP: return SDL_SCANCODE_HELP;
    1.17 +		case VK_PAUSE: return SDL_SCANCODE_PAUSE;
    1.18 +		case VK_NUMLOCK: return SDL_SCANCODE_NUMLOCKCLEAR;
    1.19  
    1.20  		case VK_F13: return SDL_SCANCODE_F13;
    1.21  		case VK_F14: return SDL_SCANCODE_F14;