Skip to content

Commit

Permalink
Add an entry for X11 "/" key for Brazilian keyboard.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
walac committed Jun 5, 2014
1 parent 75a3ad1 commit eff61ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/scancodes_xfree86.h
Expand Up @@ -266,7 +266,7 @@ static const SDL_Scancode xfree86_scancode_table2[] = {
/* 86 */ SDL_SCANCODE_NONUSBACKSLASH,
/* 87 */ SDL_SCANCODE_F11,
/* 88 */ SDL_SCANCODE_F12,
/* 89 */ SDL_SCANCODE_UNKNOWN,
/* 89 */ SDL_SCANCODE_SLASH,
/* 90 */ SDL_SCANCODE_UNKNOWN, /* Katakana */
/* 91 */ SDL_SCANCODE_UNKNOWN, /* Hiragana */
/* 92 */ SDL_SCANCODE_UNKNOWN, /* Henkan_Mode */
Expand Down

0 comments on commit eff61ee

Please sign in to comment.