Skip to content

Commit

Permalink
Changed messages about not recognized keys to include discourse link.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed May 26, 2017
1 parent 7593197 commit 90ed3da
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/core/linux/SDL_evdev.c
Expand Up @@ -398,8 +398,8 @@ SDL_EVDEV_translate_keycode(int keycode)

if (scancode == SDL_SCANCODE_UNKNOWN) {
SDL_Log("The key you just pressed is not recognized by SDL. To help "
"get this fixed, please report this to the SDL mailing list "
"<sdl@libsdl.org> EVDEV KeyCode %d\n", keycode);
"get this fixed, please report this to the SDL forums/mailing list "
"<https://discourse.libsdl.org/> EVDEV KeyCode %d", keycode);
}

return scancode;
Expand Down
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoakeyboard.m
Expand Up @@ -679,7 +679,7 @@ - (NSArray *)validAttributesForMarkedText
SDL_SendKeyboardKey(SDL_PRESSED, code);
#if 1
if (code == SDL_SCANCODE_UNKNOWN) {
fprintf(stderr, "The key you just pressed is not recognized by SDL. To help get this fixed, report this to the SDL mailing list <sdl@libsdl.org> or to Christian Walther <cwalther@gmx.ch>. Mac virtual key code is %d.\n", scancode);
fprintf(stderr, "The key you just pressed is not recognized by SDL. To help get this fixed, report this to the SDL forums/mailing list <https://discourse.libsdl.org/> or to Christian Walther <cwalther@gmx.ch>. Mac virtual key code is %d.\n", scancode);
}
#endif
if (SDL_EventState(SDL_TEXTINPUT, SDL_QUERY)) {
Expand Down
2 changes: 1 addition & 1 deletion src/video/nacl/SDL_naclevents.c
Expand Up @@ -314,7 +314,7 @@ SDL_NACL_translate_keycode(int keycode)
scancode = NACL_Keycodes[keycode];
}
if (scancode == SDL_SCANCODE_UNKNOWN) {
SDL_Log("The key you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL mailing list <sdl@libsdl.org> NACL KeyCode %d \n", keycode);
SDL_Log("The key you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL forums/mailing list <https://discourse.libsdl.org/> NACL KeyCode %d", keycode);
}
return scancode;
}
Expand Down
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11events.c
Expand Up @@ -775,7 +775,7 @@ X11_DispatchEvent(_THIS)
X11_XDisplayKeycodes(display, &min_keycode, &max_keycode);
keysym = X11_KeyCodeToSym(_this, keycode, xevent.xkey.state >> 13);
fprintf(stderr,
"The key you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL mailing list <sdl@libsdl.org> X11 KeyCode %d (%d), X11 KeySym 0x%lX (%s).\n",
"The key you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL forums/mailing list <https://discourse.libsdl.org/> X11 KeyCode %d (%d), X11 KeySym 0x%lX (%s).\n",
keycode, keycode - min_keycode, keysym,
X11_XKeysymToString(keysym));
}
Expand Down
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11keyboard.c
Expand Up @@ -380,7 +380,7 @@ X11_InitKeyboard(_THIS)
SDL_Keycode keymap[SDL_NUM_SCANCODES];

printf
("Keyboard layout unknown, please send the following to the SDL mailing list (sdl@libsdl.org):\n");
("Keyboard layout unknown, please report the following to the SDL forums/mailing list (https://discourse.libsdl.org/):\n");

/* Determine key_layout - only works on US QWERTY layout */
SDL_GetDefaultKeymap(keymap);
Expand Down

0 comments on commit 90ed3da

Please sign in to comment.