--- a/hedgewars/hwengine.pas Thu Jul 22 03:08:17 2010 +0200
+++ b/hedgewars/hwengine.pas Thu Jul 22 12:47:32 2010 +0200
@@ -49,9 +49,7 @@
////////////////////////////////
procedure DoTimer(Lag: LongInt);
-{$IFNDEF IPHONEOS}
var s: shortstring;
-{$ENDIF}
begin
if not isPaused then inc(RealTicks, Lag);
@@ -108,7 +106,6 @@
{$ELSE}
SDL_GL_SwapBuffers();
{$ENDIF}
-{$IFNDEF IPHONEOS}
// not going to make captures on the iPhone
if flagMakeCapture then
begin
@@ -118,7 +115,6 @@
MakeScreenshot(s);
//SDL_SaveBMP_RW(SDLPrimSurface, SDL_RWFromFile(Str2PChar(s), 'wb'), 1)
end;
-{$ENDIF}
end;
////////////////////
@@ -157,6 +153,8 @@
KeyPressChat(event.key.keysym.sym);
{$ELSE}
KeyPressChat(event.key.keysym.unicode);
+ SDL_MOUSEBUTTONDOWN: if event.button.button = SDL_BUTTON_WHEELDOWN then uKeys.wheelDown:= true;
+ SDL_MOUSEBUTTONUP: if event.button.button = SDL_BUTTON_WHEELUP then uKeys.wheelUp:= true;
{$ENDIF}
{$IFDEF SDL13}
SDL_WINDOWEVENT:
@@ -167,10 +165,6 @@
if (event.active.state and SDL_APPINPUTFOCUS) <> 0 then
cHasFocus:= event.active.gain = 1;
{$ENDIF}
-{$IFNDEF IPHONEOS}
- SDL_MOUSEBUTTONDOWN: if event.button.button = SDL_BUTTON_WHEELDOWN then uKeys.wheelDown:= true;
- SDL_MOUSEBUTTONUP: if event.button.button = SDL_BUTTON_WHEELUP then uKeys.wheelUp:= true;
-{$ENDIF}
SDL_JOYAXISMOTION: ControllerAxisEvent(event.jaxis.which, event.jaxis.axis, event.jaxis.value);
SDL_JOYHATMOTION: ControllerHatEvent(event.jhat.which, event.jhat.hat, event.jhat.value);
SDL_JOYBUTTONDOWN: ControllerButtonEvent(event.jbutton.which, event.jbutton.button, true);