hedgewars/hwengine.dpr
changeset 377 d9b88dbdf5a9
parent 371 731ad6d27bd1
child 393 db01cc79f278
--- a/hedgewars/hwengine.dpr	Sun Jan 28 21:03:58 2007 +0000
+++ b/hedgewars/hwengine.dpr	Thu Feb 01 21:42:11 2007 +0000
@@ -140,7 +140,7 @@
                                         cConsoleYAdd:= cConsoleHeight;
                                         GameState:= gsConsole
                                         end;
-                          gsConsole: KeyPressConsole(event.key.keysym.sym);
+                          gsConsole: KeyPressConsole(event.key.keysym.unicode);
                              end;
            SDL_ACTIVEEVENT: if (event.active.state and SDL_APPINPUTFOCUS) <> 0 then
                                cHasFocus:= event.active.gain = 1;
@@ -212,6 +212,7 @@
 WriteToConsole('Init SDL... ');
 SDLTry(SDL_Init(SDL_INIT_VIDEO) >= 0, true);
 WriteLnToConsole(msgOK);
+SDL_EnableUNICODE(1);
 
 WriteToConsole('Init SDL_ttf... ');
 SDLTry(TTF_Init <> -1, true);