hedgewars/hwengine.pas
changeset 14813 9443dc6663ba
parent 14770 ba8dd081359d
child 14865 259840ca77e3
--- a/hedgewars/hwengine.pas	Tue Apr 16 00:07:15 2019 +0300
+++ b/hedgewars/hwengine.pas	Thu Apr 18 19:44:25 2019 +0200
@@ -254,14 +254,17 @@
                 SDL_FINGERUP:
                     onTouchUp(event.tfinger.x, event.tfinger.y, event.tfinger.fingerId);
 {$ELSE}
+                SDL_MOUSEMOTION:
+                    ProcessMouseMotion(event.motion.xrel, event.motion.yrel);
+
                 SDL_MOUSEBUTTONDOWN:
                     if GameState = gsConfirm then
                         ParseCommand('quit', true)
                     else
-                        if (GameState >= gsGame) then ProcessMouse(event.button, true);
+                        if (GameState >= gsGame) then ProcessMouseButton(event.button, true);
 
                 SDL_MOUSEBUTTONUP:
-                    if (GameState >= gsGame) then ProcessMouse(event.button, false);
+                    if (GameState >= gsGame) then ProcessMouseButton(event.button, false);
 
                 SDL_MOUSEWHEEL:
                     begin
@@ -383,8 +386,8 @@
         end;
 
     if not allOK then exit;
-    SDL_ShowCursor(0);
 
+    SDL_ShowCursor(SDL_DISABLE);
 
 {$IFDEF USE_VIDEO_RECORDING}
     if GameType = gmtRecord then