hedgewars/hwengine.pas
changeset 8742 b7b8bd398c1b
parent 8615 a4cb6168016e
child 8833 c13ebed437cb
child 8835 01bcf9ea68c1
--- a/hedgewars/hwengine.pas	Sun Mar 17 01:36:04 2013 +0100
+++ b/hedgewars/hwengine.pas	Sun Mar 17 10:13:14 2013 -0400
@@ -167,8 +167,10 @@
 {$IFDEF SDL13}
                 SDL_KEYDOWN:
                     if GameState = gsChat then
+                        begin
                     // sdl on iphone supports only ashii keyboards and the unicode field is deprecated in sdl 1.3
-                        KeyPressChat(SDL_GetKeyFromScancode(event.key.keysym.sym))//TODO correct for keymodifiers
+                        KeyPressChat(SDL_GetKeyFromScancode(event.key.keysym.sym, event.key.keysym.sym)//TODO correct for keymodifiers
+                        end
                     else
                         ProcessKey(event.key);
                 SDL_KEYUP:
@@ -212,7 +214,7 @@
 {$ELSE}
                 SDL_KEYDOWN:
                     if GameState = gsChat then
-                        KeyPressChat(event.key.keysym.unicode)
+                        KeyPressChat(event.key.keysym.unicode, event.key.keysym.sym)
                     else
                         ProcessKey(event.key);
                 SDL_KEYUP: