hedgewars/hwengine.pas
branchsdl2transition
changeset 11365 b8b208501475
parent 11362 ed5a6478e710
child 11403 b894922d58cc
child 11477 e425a6eb9da3
equal deleted inserted replaced
11364:b0df3f2fcafc 11365:b8b208501475
   167             case event.type_ of
   167             case event.type_ of
   168                 SDL_KEYDOWN:
   168                 SDL_KEYDOWN:
   169                     if GameState = gsChat then
   169                     if GameState = gsChat then
   170                         begin
   170                         begin
   171                     // sdl on iphone supports only ashii keyboards and the unicode field is deprecated in sdl 1.3
   171                     // sdl on iphone supports only ashii keyboards and the unicode field is deprecated in sdl 1.3
   172                         KeyPressChat(SDL_GetKeyFromScancode(event.key.keysym.sym), event.key.keysym.sym, event.key.keysym.modifier);
   172                         KeyPressChat(event.key.keysym);
   173                         end
   173                         end
   174                     else
   174                     else
   175                         if GameState >= gsGame then ProcessKey(event.key);
   175                         if GameState >= gsGame then ProcessKey(event.key);
   176                 SDL_KEYUP:
   176                 SDL_KEYUP:
   177                     if (GameState <> gsChat) and (GameState >= gsGame) then
   177                     if (GameState <> gsChat) and (GameState >= gsGame) then