- made the menu's text input handler Unicode capable.
Also make sure that the savegame description remains readable. Unlike in-game text this can be done without double-encoding existing UTF-8.
This commit is contained in:
parent
54cb16ad8e
commit
deb233677e
13 changed files with 111 additions and 30 deletions
|
|
@ -41,6 +41,7 @@
|
|||
#include "d_net.h"
|
||||
#include "g_game.h"
|
||||
#include "info.h"
|
||||
#include "utf8.h"
|
||||
|
||||
EventManager staticEventManager;
|
||||
EventManager eventManager;
|
||||
|
|
@ -1026,7 +1027,7 @@ FUiEvent::FUiEvent(const event_t *ev)
|
|||
break;
|
||||
case EV_GUI_Char:
|
||||
KeyChar = ev->data1;
|
||||
KeyString = FString(char(ev->data1));
|
||||
KeyString = MakeUTF8(ev->data1);
|
||||
IsAlt = !!ev->data2; // only true for Win32, not sure about SDL
|
||||
break;
|
||||
default: // mouse event
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue