comparison src/video/windx5/SDL_dx5events.c @ 275:53fc686e9428

Added support for the pause key under DirectX
author Sam Lantinga <slouken@libsdl.org>
date Wed, 13 Feb 2002 18:21:48 +0000
parents e8157fcb3114
children 9a02597bc1b0
comparison
equal deleted inserted replaced
274:051b991765ba 275:53fc686e9428
619 } 619 }
620 } 620 }
621 621
622 void DX5_InitOSKeymap(_THIS) 622 void DX5_InitOSKeymap(_THIS)
623 { 623 {
624 #ifndef DIK_PAUSE
625 #define DIK_PAUSE 0xC5
626 #endif
624 int i; 627 int i;
625 628
626 /* Map the DIK scancodes to SDL keysyms */ 629 /* Map the DIK scancodes to SDL keysyms */
627 for ( i=0; i<SDL_TABLESIZE(DIK_keymap); ++i ) 630 for ( i=0; i<SDL_TABLESIZE(DIK_keymap); ++i )
628 DIK_keymap[i] = 0; 631 DIK_keymap[i] = 0;
722 DIK_keymap[DIK_NUMPADENTER] = SDLK_KP_ENTER; 725 DIK_keymap[DIK_NUMPADENTER] = SDLK_KP_ENTER;
723 DIK_keymap[DIK_RCONTROL] = SDLK_RCTRL; 726 DIK_keymap[DIK_RCONTROL] = SDLK_RCTRL;
724 DIK_keymap[DIK_DIVIDE] = SDLK_KP_DIVIDE; 727 DIK_keymap[DIK_DIVIDE] = SDLK_KP_DIVIDE;
725 DIK_keymap[DIK_SYSRQ] = SDLK_SYSREQ; 728 DIK_keymap[DIK_SYSRQ] = SDLK_SYSREQ;
726 DIK_keymap[DIK_RMENU] = SDLK_RALT; 729 DIK_keymap[DIK_RMENU] = SDLK_RALT;
730 DIK_keymap[DIK_PAUSE] = SDLK_BREAK;
727 DIK_keymap[DIK_HOME] = SDLK_HOME; 731 DIK_keymap[DIK_HOME] = SDLK_HOME;
728 DIK_keymap[DIK_UP] = SDLK_UP; 732 DIK_keymap[DIK_UP] = SDLK_UP;
729 DIK_keymap[DIK_PRIOR] = SDLK_PAGEUP; 733 DIK_keymap[DIK_PRIOR] = SDLK_PAGEUP;
730 DIK_keymap[DIK_LEFT] = SDLK_LEFT; 734 DIK_keymap[DIK_LEFT] = SDLK_LEFT;
731 DIK_keymap[DIK_RIGHT] = SDLK_RIGHT; 735 DIK_keymap[DIK_RIGHT] = SDLK_RIGHT;