--- 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: