Add an entry for X11 "/" key for Brazilian keyboard.
authorWander Lairson Costa <wander.lairson@gmail.com>
Thu, 05 Jun 2014 11:55:37 -0300
changeset 95726fe1936ac50b
parent 9571 5e3a1adadfbb
child 9573 cc6cba65bf36
Add an entry for X11 "/" key for Brazilian keyboard.

SDL2 reports the following message when we type the "/" on br-abnt2 keyboards:

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 97 (89), X11 KeySym 0x2F (slash).

That's because the corresponding entry in the scancodes table is
marked with value SDL_SCANCODE_UNKNOWN.

This commit fixes that adding the value SDL_SCANCODE_SLASH for this entry.
src/events/scancodes_xfree86.h
     1.1 --- a/src/events/scancodes_xfree86.h	Wed Apr 22 20:25:19 2015 -0400
     1.2 +++ b/src/events/scancodes_xfree86.h	Thu Jun 05 11:55:37 2014 -0300
     1.3 @@ -266,7 +266,7 @@
     1.4      /*  86 */   SDL_SCANCODE_NONUSBACKSLASH,
     1.5      /*  87 */   SDL_SCANCODE_F11,
     1.6      /*  88 */   SDL_SCANCODE_F12,
     1.7 -    /*  89 */   SDL_SCANCODE_UNKNOWN,
     1.8 +    /*  89 */   SDL_SCANCODE_SLASH,
     1.9      /*  90 */   SDL_SCANCODE_UNKNOWN,   /* Katakana */
    1.10      /*  91 */   SDL_SCANCODE_UNKNOWN,   /* Hiragana */
    1.11      /*  92 */   SDL_SCANCODE_UNKNOWN,   /* Henkan_Mode */