--- 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