equal
deleted
inserted
replaced
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 |