comparison src/video/windx5/SDL_dx5events.c @ 327:13fc64213765

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Sun, 31 Mar 2002 03:34:16 +0000
parents 1b5457c0a8ad
children 3d6dd1b7b7ba
comparison
equal deleted inserted replaced
326:72d55d02cb47 327:13fc64213765
622 622
623 void DX5_InitOSKeymap(_THIS) 623 void DX5_InitOSKeymap(_THIS)
624 { 624 {
625 #ifndef DIK_PAUSE 625 #ifndef DIK_PAUSE
626 #define DIK_PAUSE 0xC5 626 #define DIK_PAUSE 0xC5
627 #endif
628 #ifndef DIK_OEM_102
629 #define DIK_OEM_102 0x56 /* < > | on UK/Germany keyboards */
627 #endif 630 #endif
628 int i; 631 int i;
629 632
630 /* Map the DIK scancodes to SDL keysyms */ 633 /* Map the DIK scancodes to SDL keysyms */
631 for ( i=0; i<SDL_TABLESIZE(DIK_keymap); ++i ) 634 for ( i=0; i<SDL_TABLESIZE(DIK_keymap); ++i )
673 DIK_keymap[DIK_SEMICOLON] = SDLK_SEMICOLON; 676 DIK_keymap[DIK_SEMICOLON] = SDLK_SEMICOLON;
674 DIK_keymap[DIK_APOSTROPHE] = SDLK_QUOTE; 677 DIK_keymap[DIK_APOSTROPHE] = SDLK_QUOTE;
675 DIK_keymap[DIK_GRAVE] = SDLK_BACKQUOTE; 678 DIK_keymap[DIK_GRAVE] = SDLK_BACKQUOTE;
676 DIK_keymap[DIK_LSHIFT] = SDLK_LSHIFT; 679 DIK_keymap[DIK_LSHIFT] = SDLK_LSHIFT;
677 DIK_keymap[DIK_BACKSLASH] = SDLK_BACKSLASH; 680 DIK_keymap[DIK_BACKSLASH] = SDLK_BACKSLASH;
681 DIK_keymap[DIK_OEM_102] = SDLK_BACKSLASH;
678 DIK_keymap[DIK_Z] = SDLK_z; 682 DIK_keymap[DIK_Z] = SDLK_z;
679 DIK_keymap[DIK_X] = SDLK_x; 683 DIK_keymap[DIK_X] = SDLK_x;
680 DIK_keymap[DIK_C] = SDLK_c; 684 DIK_keymap[DIK_C] = SDLK_c;
681 DIK_keymap[DIK_V] = SDLK_v; 685 DIK_keymap[DIK_V] = SDLK_v;
682 DIK_keymap[DIK_B] = SDLK_b; 686 DIK_keymap[DIK_B] = SDLK_b;