comparison src/video/win32/SDL_win32keyboard.c @ 2726:f23ebf1ddac4

Dynamically load wintab32.dll
author Sam Lantinga <slouken@libsdl.org>
date Tue, 26 Aug 2008 06:03:48 +0000
parents 0e2b65f32298
children 204be4fc2726
comparison
equal deleted inserted replaced
2725:6ce6d56b63bf 2726:f23ebf1ddac4
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 #if 0 57 #if 0
58 printf("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 printf
59 ("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 #endif 60 #endif
60 for (i = 0; i < SDL_arraysize(alpha_scancodes); ++i) { 61 for (i = 0; i < SDL_arraysize(alpha_scancodes); ++i) {
61 alpha_scancodes[i] = MapVirtualKey('A' + i, MAPVK_VK_TO_VSC); 62 alpha_scancodes[i] = MapVirtualKey('A' + i, MAPVK_VK_TO_VSC);
62 #if 0 63 #if 0
63 printf("%d = %d\n", i, alpha_scancodes[i]); 64 printf("%d = %d\n", i, alpha_scancodes[i]);
64 #endif 65 #endif
65 } 66 }
66 } 67 }
67 if (MapVirtualKey(VK_NUMPAD0, MAPVK_VK_TO_VSC) != keypad_scancodes[0]) { 68 if (MapVirtualKey(VK_NUMPAD0, MAPVK_VK_TO_VSC) != keypad_scancodes[0]) {
68 #if 0 69 #if 0
69 printf("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"); 70 printf
71 ("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");
70 #endif 72 #endif
71 for (i = 0; i < SDL_arraysize(keypad_scancodes); ++i) { 73 for (i = 0; i < SDL_arraysize(keypad_scancodes); ++i) {
72 keypad_scancodes[i] = 74 keypad_scancodes[i] =
73 MapVirtualKey(VK_NUMPAD0 + i, MAPVK_VK_TO_VSC); 75 MapVirtualKey(VK_NUMPAD0 + i, MAPVK_VK_TO_VSC);
74 #if 0 76 #if 0