comparison src/video/win32/SDL_win32keyboard.c @ 3767:abc8acb8e3d7 gsoc2008_manymouse

Proximity events, Pressure detection for multiple windows. Tablet button detection on the way.
author Szymon Wilczek <kazeuser@gmail.com>
date Wed, 23 Jul 2008 16:12:43 +0000
parents 3202e4826c57
children
comparison
equal deleted inserted replaced
3766:24db5d326f57 3767:abc8acb8e3d7
52 SDL_Keyboard keyboard; 52 SDL_Keyboard keyboard;
53 int i; 53 int i;
54 54
55 /* Make sure the alpha scancodes are correct. T isn't usually remapped */ 55 /* Make sure the alpha scancodes are correct. T isn't usually remapped */
56 if (MapVirtualKey('T', MAPVK_VK_TO_VSC) != alpha_scancodes['T' - 'A']) { 56 if (MapVirtualKey('T', MAPVK_VK_TO_VSC) != alpha_scancodes['T' - 'A']) {
57 printf 57 //printf
58 ("Fixing alpha scancode map, assuming US QWERTY layout!\nPlease send the following 26 lines of output to the SDL mailing list <sdl@libsdl.org>, including a description of your keyboard hardware.\n"); 58 // ("Fixing alpha scancode map, assuming US QWERTY layout!\nPlease send the following 26 lines of output to the SDL mailing list <sdl@libsdl.org>, including a description of your keyboard hardware.\n");
59 for (i = 0; i < SDL_arraysize(alpha_scancodes); ++i) { 59 for (i = 0; i < SDL_arraysize(alpha_scancodes); ++i) {
60 alpha_scancodes[i] = MapVirtualKey('A' + i, MAPVK_VK_TO_VSC); 60 alpha_scancodes[i] = MapVirtualKey('A' + i, MAPVK_VK_TO_VSC);
61 printf("%d = %d\n", i, alpha_scancodes[i]); 61 // printf("%d = %d\n", i, alpha_scancodes[i]);
62 } 62 }
63 } 63 }
64 if (MapVirtualKey(VK_NUMPAD0, MAPVK_VK_TO_VSC) != keypad_scancodes[0]) { 64 if (MapVirtualKey(VK_NUMPAD0, MAPVK_VK_TO_VSC) != keypad_scancodes[0]) {
65 printf 65 // printf
66 ("Fixing keypad scancode map!\nPlease send the following 10 lines of output to the SDL mailing list <sdl@libsdl.org>, including a description of your keyboard hardware.\n"); 66 // ("Fixing keypad scancode map!\nPlease send the following 10 lines of output to the SDL mailing list <sdl@libsdl.org>, including a description of your keyboard hardware.\n");
67 for (i = 0; i < SDL_arraysize(keypad_scancodes); ++i) { 67 for (i = 0; i < SDL_arraysize(keypad_scancodes); ++i) {
68 keypad_scancodes[i] = 68 keypad_scancodes[i] =
69 MapVirtualKey(VK_NUMPAD0 + i, MAPVK_VK_TO_VSC); 69 MapVirtualKey(VK_NUMPAD0 + i, MAPVK_VK_TO_VSC);
70 printf("%d = %d\n", i, keypad_scancodes[i]); 70 // printf("%d = %d\n", i, keypad_scancodes[i]);
71 } 71 }
72 } 72 }
73 73
74 data->key_layout = win32_scancode_table; 74 data->key_layout = win32_scancode_table;
75 75