src/video/win32/SDL_win32keyboard.c
changeset 2324 3202e4826c57
parent 2317 f537a293b3da
child 2698 e1da92da346c
child 2724 0e2b65f32298
child 3767 abc8acb8e3d7
--- a/src/video/win32/SDL_win32keyboard.c	Thu Mar 06 23:07:02 2008 +0000
+++ b/src/video/win32/SDL_win32keyboard.c	Fri Mar 07 17:20:37 2008 +0000
@@ -53,18 +53,21 @@
     int i;
 
     /* Make sure the alpha scancodes are correct.  T isn't usually remapped */
-    if (MapVirtualKey('T', MAPVK_VK_TO_VSC) != alpha_scancodes['T'-'A']) {
-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");
+    if (MapVirtualKey('T', MAPVK_VK_TO_VSC) != alpha_scancodes['T' - 'A']) {
+        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");
         for (i = 0; i < SDL_arraysize(alpha_scancodes); ++i) {
-            alpha_scancodes[i] = MapVirtualKey('A'+i, MAPVK_VK_TO_VSC);
-printf("%d = %d\n", i, alpha_scancodes[i]);
+            alpha_scancodes[i] = MapVirtualKey('A' + i, MAPVK_VK_TO_VSC);
+            printf("%d = %d\n", i, alpha_scancodes[i]);
         }
     }
     if (MapVirtualKey(VK_NUMPAD0, MAPVK_VK_TO_VSC) != keypad_scancodes[0]) {
-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");
+        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");
         for (i = 0; i < SDL_arraysize(keypad_scancodes); ++i) {
-            keypad_scancodes[i] = MapVirtualKey(VK_NUMPAD0+i, MAPVK_VK_TO_VSC);
-printf("%d = %d\n", i, keypad_scancodes[i]);
+            keypad_scancodes[i] =
+                MapVirtualKey(VK_NUMPAD0 + i, MAPVK_VK_TO_VSC);
+            printf("%d = %d\n", i, keypad_scancodes[i]);
         }
     }
 
@@ -99,7 +102,7 @@
 
         /* Alphabetic keys are handled specially, since Windows remaps them */
         if (i >= 'A' && i <= 'Z') {
-            BYTE vsc = alpha_scancodes[i-'A'];
+            BYTE vsc = alpha_scancodes[i - 'A'];
             keymap[scancode] = MapVirtualKey(vsc, MAPVK_VSC_TO_VK) + 0x20;
         } else {
             keymap[scancode] = (MapVirtualKey(i, MAPVK_VK_TO_CHAR) & 0x7FFF);