Added support for the pause key under DirectX
authorSam Lantinga <slouken@libsdl.org>
Wed, 13 Feb 2002 18:21:48 +0000
changeset 27553fc686e9428
parent 274 051b991765ba
child 276 8af85680ca0a
Added support for the pause key under DirectX
src/video/windx5/SDL_dx5events.c
     1.1 --- a/src/video/windx5/SDL_dx5events.c	Wed Feb 13 17:45:24 2002 +0000
     1.2 +++ b/src/video/windx5/SDL_dx5events.c	Wed Feb 13 18:21:48 2002 +0000
     1.3 @@ -621,6 +621,9 @@
     1.4  
     1.5  void DX5_InitOSKeymap(_THIS)
     1.6  {
     1.7 +#ifndef DIK_PAUSE
     1.8 +#define DIK_PAUSE	0xC5
     1.9 +#endif
    1.10  	int i;
    1.11  
    1.12  	/* Map the DIK scancodes to SDL keysyms */
    1.13 @@ -724,6 +727,7 @@
    1.14  	DIK_keymap[DIK_DIVIDE] = SDLK_KP_DIVIDE;
    1.15  	DIK_keymap[DIK_SYSRQ] = SDLK_SYSREQ;
    1.16  	DIK_keymap[DIK_RMENU] = SDLK_RALT;
    1.17 +	DIK_keymap[DIK_PAUSE] = SDLK_BREAK;
    1.18  	DIK_keymap[DIK_HOME] = SDLK_HOME;
    1.19  	DIK_keymap[DIK_UP] = SDLK_UP;
    1.20  	DIK_keymap[DIK_PRIOR] = SDLK_PAGEUP;