diff options
author | Filippos Karapetis | 2014-12-09 19:37:33 +0200 |
---|---|---|
committer | Filippos Karapetis | 2014-12-09 19:38:11 +0200 |
commit | 1f80e1389fca2fc86d7176730115c48f4e503474 (patch) | |
tree | 439af90815faa044ce42c8138e97649321091d91 /engines | |
parent | ea8db1969a7f975103d26f6a6a7eaa54835db7c1 (diff) | |
download | scummvm-rg350-1f80e1389fca2fc86d7176730115c48f4e503474.tar.gz scummvm-rg350-1f80e1389fca2fc86d7176730115c48f4e503474.tar.bz2 scummvm-rg350-1f80e1389fca2fc86d7176730115c48f4e503474.zip |
ZVISION: Fix the responsiveness of level controls to mouse movement
This fixes the responsiveness of the levers in the planet screen of
Zork: Nemesis
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/scripting/controls/lever_control.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/zvision/scripting/controls/lever_control.cpp b/engines/zvision/scripting/controls/lever_control.cpp index 12b07d7584..1e4087963e 100644 --- a/engines/zvision/scripting/controls/lever_control.cpp +++ b/engines/zvision/scripting/controls/lever_control.cpp @@ -221,10 +221,9 @@ bool LeverControl::onMouseMove(const Common::Point &screenSpacePos, const Common bool cursorWasChanged = false; if (_mouseIsCaptured) { - // Make sure the square distance between the last point and the current point is greater than 64 + // Make sure the square distance between the last point and the current point is greater than 16 // This is a heuristic. This determines how responsive the lever is to mouse movement. - // TODO: Fiddle with the heuristic to get a good lever responsiveness 'feel' - if (_lastMousePos.sqrDist(backgroundImageSpacePos) >= 64) { + if (_lastMousePos.sqrDist(backgroundImageSpacePos) >= 16) { int angle = calculateVectorAngle(_lastMousePos, backgroundImageSpacePos); _lastMousePos = backgroundImageSpacePos; |