src/video/winrt/SDL_winrtkeyboard.cpp
changeset 9190 ff12797f287b
parent 9189 5dc3c7c2864c
child 9191 7a728256c5f5
     1.1 --- a/src/video/winrt/SDL_winrtkeyboard.cpp	Fri Oct 24 22:09:47 2014 -0400
     1.2 +++ b/src/video/winrt/SDL_winrtkeyboard.cpp	Sat Oct 25 08:43:51 2014 -0400
     1.3 @@ -269,7 +269,7 @@
     1.4       * at least not for Windows [Phone] 8/8.1, as of Oct 24, 2014), then this
     1.5       * hack might become deprecated, or obsolete.
     1.6       */
     1.7 -    if (nativeScancode < (sizeof(windows_scancode_table) / sizeof(SDL_Scancode))) {
     1.8 +    if (nativeScancode < SDL_arraysize(windows_scancode_table)) {
     1.9          switch (keycode) {
    1.10              case 16:    // VirtualKey.Shift
    1.11                  switch (windows_scancode_table[nativeScancode]) {
    1.12 @@ -311,7 +311,9 @@
    1.13      SDL_Scancode sdlScancode = TranslateKeycode((int)args->VirtualKey, args->KeyStatus.ScanCode);
    1.14  #if 0
    1.15      SDL_Keycode keycode = SDL_GetKeyFromScancode(sdlScancode);
    1.16 -    SDL_Log("key down, handled=%s, ext?=%s, released?=%s, menu key down?=%s, repeat count=%d, native scan code=0x%x, was down?=%s, vkey=%d, sdl scan code=%d (%s), sdl key code=%d (%s)\n",
    1.17 +    SDL_Log("key down, handled=%s, ext?=%s, released?=%s, menu key down?=%s, "
    1.18 +            "repeat count=%d, native scan code=0x%x, was down?=%s, vkey=%d, "
    1.19 +            "sdl scan code=%d (%s), sdl key code=%d (%s)\n",
    1.20          (args->Handled ? "1" : "0"),
    1.21          (args->KeyStatus.IsExtendedKey ? "1" : "0"),
    1.22          (args->KeyStatus.IsKeyReleased ? "1" : "0"),
    1.23 @@ -336,7 +338,9 @@
    1.24      SDL_Scancode sdlScancode = TranslateKeycode((int)args->VirtualKey, args->KeyStatus.ScanCode);
    1.25  #if 0
    1.26      SDL_Keycode keycode = SDL_GetKeyFromScancode(sdlScancode);
    1.27 -    SDL_Log("key up, handled=%s, ext?=%s, released?=%s, menu key down?=%s, repeat count=%d, native scan code=0x%x, was down?=%s, vkey=%d, sdl scan code=%d (%s), sdl key code=%d (%s)\n",
    1.28 +    SDL_Log("key up, handled=%s, ext?=%s, released?=%s, menu key down?=%s, "
    1.29 +            "repeat count=%d, native scan code=0x%x, was down?=%s, vkey=%d, "
    1.30 +            "sdl scan code=%d (%s), sdl key code=%d (%s)\n",
    1.31          (args->Handled ? "1" : "0"),
    1.32          (args->KeyStatus.IsExtendedKey ? "1" : "0"),
    1.33          (args->KeyStatus.IsKeyReleased ? "1" : "0"),