Added some unknown keys from Japanese 106/109 keyboards (thanks, "ver0hiro"!).
authorRyan C. Gordon <icculus@icculus.org>
Tue, 26 May 2015 20:55:03 -0400
changeset 96442bd2c601df72
parent 9643 413b222c4b64
child 9645 b1e7169d1dcb
Added some unknown keys from Japanese 106/109 keyboards (thanks, "ver0hiro"!).

This adds them for Windows and X11.

Fixes Bugzilla #2820.
src/events/scancodes_windows.h
src/events/scancodes_xfree86.h
     1.1 --- a/src/events/scancodes_windows.h	Tue May 26 21:51:47 2015 -0300
     1.2 +++ b/src/events/scancodes_windows.h	Tue May 26 20:55:03 2015 -0400
     1.3 @@ -49,7 +49,7 @@
     1.4  	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_F13,		SDL_SCANCODE_F14,			SDL_SCANCODE_F15,			SDL_SCANCODE_F16,		/* 6 */
     1.5  	SDL_SCANCODE_F17,			SDL_SCANCODE_F18,			SDL_SCANCODE_F19,			SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	/* 6 */
     1.6  	
     1.7 -	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	/* 7 */
     1.8 -	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN	/* 7 */
     1.9 +	SDL_SCANCODE_INTERNATIONAL2,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_INTERNATIONAL1,		SDL_SCANCODE_UNKNOWN,	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN,	/* 7 */
    1.10 +	SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_INTERNATIONAL4,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_INTERNATIONAL5,		SDL_SCANCODE_UNKNOWN,	SDL_SCANCODE_INTERNATIONAL3,		SDL_SCANCODE_UNKNOWN,		SDL_SCANCODE_UNKNOWN	/* 7 */
    1.11  };
    1.12  /* *INDENT-ON* */
     2.1 --- a/src/events/scancodes_xfree86.h	Tue May 26 21:51:47 2015 -0300
     2.2 +++ b/src/events/scancodes_xfree86.h	Tue May 26 20:55:03 2015 -0400
     2.3 @@ -141,15 +141,15 @@
     2.4      /*  112 */  SDL_SCANCODE_F15,
     2.5      /*  113 */  SDL_SCANCODE_F16,
     2.6      /*  114 */  SDL_SCANCODE_F17,
     2.7 -    /*  115 */  SDL_SCANCODE_UNKNOWN,
     2.8 +    /*  115 */  SDL_SCANCODE_INTERNATIONAL1, /* \_ */
     2.9      /*  116 */  SDL_SCANCODE_UNKNOWN, /* is translated to XK_ISO_Level3_Shift by my X server, but I have no keyboard that generates this code, so I don't know what the correct SDL_SCANCODE_* for it is */
    2.10      /*  117 */  SDL_SCANCODE_UNKNOWN,
    2.11      /*  118 */  SDL_SCANCODE_KP_EQUALS,
    2.12      /*  119 */  SDL_SCANCODE_UNKNOWN,
    2.13      /*  120 */  SDL_SCANCODE_UNKNOWN,
    2.14 -    /*  121 */  SDL_SCANCODE_UNKNOWN,
    2.15 +    /*  121 */  SDL_SCANCODE_INTERNATIONAL4, /* Henkan_Mode */
    2.16      /*  122 */  SDL_SCANCODE_UNKNOWN,
    2.17 -    /*  123 */  SDL_SCANCODE_UNKNOWN,
    2.18 +    /*  123 */  SDL_SCANCODE_INTERNATIONAL5, /* Muhenkan */
    2.19      /*  124 */  SDL_SCANCODE_UNKNOWN,
    2.20      /*  125 */  SDL_SCANCODE_INTERNATIONAL3, /* Yen */
    2.21      /*  126 */  SDL_SCANCODE_UNKNOWN,
    2.22 @@ -266,12 +266,12 @@
    2.23      /*  86 */   SDL_SCANCODE_NONUSBACKSLASH,
    2.24      /*  87 */   SDL_SCANCODE_F11,
    2.25      /*  88 */   SDL_SCANCODE_F12,
    2.26 -    /*  89 */   SDL_SCANCODE_SLASH,
    2.27 +    /*  89 */   SDL_SCANCODE_INTERNATIONAL1, /* \_ */
    2.28      /*  90 */   SDL_SCANCODE_UNKNOWN,   /* Katakana */
    2.29      /*  91 */   SDL_SCANCODE_UNKNOWN,   /* Hiragana */
    2.30 -    /*  92 */   SDL_SCANCODE_UNKNOWN,   /* Henkan_Mode */
    2.31 -    /*  93 */   SDL_SCANCODE_UNKNOWN,   /* Hiragana_Katakana */
    2.32 -    /*  94 */   SDL_SCANCODE_UNKNOWN,   /* Muhenkan */
    2.33 +    /*  92 */   SDL_SCANCODE_INTERNATIONAL4, /* Henkan_Mode */
    2.34 +    /*  93 */   SDL_SCANCODE_INTERNATIONAL2, /* Hiragana_Katakana */
    2.35 +    /*  94 */   SDL_SCANCODE_INTERNATIONAL5, /* Muhenkan */
    2.36      /*  95 */   SDL_SCANCODE_UNKNOWN,
    2.37      /*  96 */   SDL_SCANCODE_KP_ENTER,
    2.38      /*  97 */   SDL_SCANCODE_RCTRL,
    2.39 @@ -301,7 +301,7 @@
    2.40      /* 121 */   SDL_SCANCODE_UNKNOWN,   /* KP_Decimal */
    2.41      /* 122 */   SDL_SCANCODE_UNKNOWN,   /* Hangul */
    2.42      /* 123 */   SDL_SCANCODE_UNKNOWN,   /* Hangul_Hanja */
    2.43 -    /* 124 */   SDL_SCANCODE_UNKNOWN,
    2.44 +    /* 124 */   SDL_SCANCODE_INTERNATIONAL3, /* Yen */
    2.45      /* 125 */   SDL_SCANCODE_LGUI,
    2.46      /* 126 */   SDL_SCANCODE_RGUI,
    2.47      /* 127 */   SDL_SCANCODE_APPLICATION,