src/video/windib/SDL_dibevents.c
changeset 1526 89f90f32f6c0
parent 1523 21b1fbb53f4a
child 1662 782fd950bd46
child 1852 eb2d5480ae95
     1.1 --- a/src/video/windib/SDL_dibevents.c	Tue Mar 14 06:00:30 2006 +0000
     1.2 +++ b/src/video/windib/SDL_dibevents.c	Tue Mar 14 07:06:06 2006 +0000
     1.3 @@ -160,7 +160,7 @@
     1.4  			SDL_keysym keysym;
     1.5  
     1.6  #ifdef _WIN32_WCE
     1.7 -			// Drop GAPI artefacts
     1.8 +			// Drop GAPI artifacts
     1.9  			if (wParam == 0x84 || wParam == 0x5B)
    1.10  				return 0;
    1.11  
    1.12 @@ -197,6 +197,11 @@
    1.13  						wParam = VK_LMENU;
    1.14  					break;
    1.15  			}
    1.16 +			/* Windows only reports keyup for print screen */
    1.17 +			if ( wParam == VK_SNAPSHOT && SDL_GetKeyState(NULL)[SDLK_PRINT] == SDL_RELEASED ) {
    1.18 +				posted = SDL_PrivateKeyboard(SDL_PRESSED,
    1.19 +					TranslateKey(wParam,HIWORD(lParam),&keysym,1));
    1.20 +			}
    1.21  			posted = SDL_PrivateKeyboard(SDL_RELEASED,
    1.22  				TranslateKey(wParam,HIWORD(lParam),&keysym,0));
    1.23  		}