--- a/hedgewars/hwengine.pas Fri Jul 16 00:18:03 2010 +0200
+++ b/hedgewars/hwengine.pas Sat Jul 17 03:59:10 2010 +0200
@@ -151,7 +151,13 @@
while SDL_PollEvent(@event) <> 0 do
begin
case event.type_ of
- SDL_KEYDOWN: if GameState = gsChat then KeyPressChat(event.key.keysym.unicode);
+ SDL_KEYDOWN: if GameState = gsChat then
+{$IFDEF IPHONEOS}
+ // sdl on iphone supports only ashii keyboards and the unicode field is deprecated in sdl 1.3
+ KeyPressChat(event.key.keysym.sym);
+{$ELSE}
+ KeyPressChat(event.key.keysym.unicode);
+{$ENDIF}
{$IFDEF SDL13}
SDL_WINDOWEVENT:
if event.wevent.event = SDL_WINDOWEVENT_SHOWN then