Support Unicode Keyboard Input

This commit is contained in:
Thomas Bernard
2018-02-15 14:46:44 +01:00
parent 689aebf264
commit 144d10b682
5 changed files with 13 additions and 5 deletions

View File

@@ -633,7 +633,7 @@ word Keysym_to_ANSI(SDL_keysym keysym)
// This part was removed from the MacOSX port, but I put it back for others
// as on Linux and Windows, it's what allows editing a text line with the keys
// SDLK_LEFT, SDLK_RIGHT, SDLK_HOME, SDLK_END etc.
#if !(defined(__macosx__) || defined(__FreeBSD__))
#if !defined(__macosx__)
if ( keysym.unicode == 0)
{
@@ -722,6 +722,8 @@ word Keysym_to_ANSI(SDL_keysym keysym)
return 'º'; // º
case 0xC600:
return 'ã'; // ã
case 0x20AC:
return '\x80'; // Euro sign is 20AC in unicode, 80 in CP1252
}
// Key entre 127 et 255