equal
deleted
inserted
replaced
120 {$ENDIF} |
120 {$ENDIF} |
121 |
121 |
122 if flagMakeCapture then |
122 if flagMakeCapture then |
123 begin |
123 begin |
124 flagMakeCapture:= false; |
124 flagMakeCapture:= false; |
125 {$IFDEF PAS2C} |
|
126 s:= '/Screenshots/hw'; |
|
127 {$ELSE} |
|
128 s:= '/Screenshots/hw_' + FormatDateTime('YYYY-MM-DD_HH-mm-ss', Now()) + inttostr(GameTicks); |
125 s:= '/Screenshots/hw_' + FormatDateTime('YYYY-MM-DD_HH-mm-ss', Now()) + inttostr(GameTicks); |
129 {$ENDIF} |
|
130 |
126 |
131 // flash |
127 // flash |
132 playSound(sndShutter); |
128 playSound(sndShutter); |
133 ScreenFade:= sfFromWhite; |
129 ScreenFade:= sfFromWhite; |
134 ScreenFadeValue:= sfMax; |
130 ScreenFadeValue:= sfMax; |
167 {$IFDEF SDL13} |
163 {$IFDEF SDL13} |
168 SDL_KEYDOWN: |
164 SDL_KEYDOWN: |
169 if GameState = gsChat then |
165 if GameState = gsChat then |
170 begin |
166 begin |
171 // sdl on iphone supports only ashii keyboards and the unicode field is deprecated in sdl 1.3 |
167 // 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)//TODO correct for keymodifiers |
168 KeyPressChat(SDL_GetKeyFromScancode(event.key.keysym.sym), event.key.keysym.sym); //TODO correct for keymodifiers |
173 end |
169 end |
174 else |
170 else |
175 ProcessKey(event.key); |
171 ProcessKey(event.key); |
176 SDL_KEYUP: |
172 SDL_KEYUP: |
177 if GameState <> gsChat then |
173 if GameState <> gsChat then |