hedgewars/uInputHandler.pas
changeset 14896 63357ed39886
parent 14895 d4a19bf6687e
child 14897 6a928999fefd
--- a/hedgewars/uInputHandler.pas	Tue May 07 13:56:11 2019 +0200
+++ b/hedgewars/uInputHandler.pas	Tue May 07 14:17:09 2019 +0200
@@ -249,6 +249,8 @@
             begin
             LocalMessage:= LocalMessage or gmPrecise;
             updateVolumeDelta(true);
+            updateCursorMovementDelta(true, CursorMovementX, CursorMovementX);
+            updateCursorMovementDelta(true, CursorMovementY, CursorMovementY);
             end;
 
         ParseCommand(CurrentBinds.binds[CurrentBinds.indices[code]], Trusted);
@@ -261,6 +263,8 @@
             begin
             LocalMessage:= LocalMessage and (not gmPrecise);
             updateVolumeDelta(false);
+            updateCursorMovementDelta(false, CursorMovementX, CursorMovementX);
+            updateCursorMovementDelta(false, CursorMovementY, CursorMovementY);
             end;
         s:= CurrentBinds.binds[CurrentBinds.indices[code]];
         s[1]:= '-';