1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Corrects application of negative relative scale.

This commit is contained in:
Thomas Harte 2020-01-01 13:22:21 -05:00
parent 017681a97c
commit 23ed9ad2de
2 changed files with 3 additions and 3 deletions

View File

@ -61,9 +61,9 @@ void IntelligentKeyboard::run_for(HalfCycles duration) {
(abs(captured_movement[0]) >= mouse_threshold_[0]) ||
(abs(captured_movement[1]) >= mouse_threshold_[1]) ) {
mouse_movement_[0] -= captured_movement[0];
mouse_movement_[1] -= mouse_y_multiplier_ * captured_movement[1];
mouse_movement_[1] -= captured_movement[1];
post_relative_mouse_event(captured_movement[0], captured_movement[1]);
post_relative_mouse_event(captured_movement[0], captured_movement[1] * mouse_y_multiplier_);
}
} break;

View File

@ -67,7 +67,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Release"
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
enableASanStackUseAfterReturn = "YES"