hedgewars/uWorld.pas
changeset 14809 c2793ff4e887
parent 14808 9443dc6663ba
child 14914 9ab78e08a34c
--- a/hedgewars/uWorld.pas	Thu Apr 18 19:44:25 2019 +0200
+++ b/hedgewars/uWorld.pas	Thu Apr 18 20:02:45 2019 +0200
@@ -2148,18 +2148,24 @@
 begin
     if isPaused or isAFK or (GameState = gsConfirm) then
         begin
+{$IFNDEF USE_TOUCH_INTERFACE}
         SDL_SetRelativeMouseMode(SDL_FALSE);
+{$ENDIF}
         if SDL_ShowCursor(SDL_QUERY) = SDL_DISABLE then
             begin
             uCursor.resetPosition;
+{$IFNDEF USE_TOUCH_INTERFACE}
             SDL_ShowCursor(SDL_ENABLE);
+{$ENDIF}
             end;
         end
     else
         begin
         uCursor.resetPositionDelta;
+{$IFNDEF USE_TOUCH_INTERFACE}
         SDL_ShowCursor(SDL_DISABLE);
         SDL_SetRelativeMouseMode(SDL_TRUE);
+{$ENDIF}
         end;
 end;