mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-29 12:50:28 +00:00
Corrects application of negative relative scale.
This commit is contained in:
parent
017681a97c
commit
23ed9ad2de
@ -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;
|
||||
|
||||
|
@ -67,7 +67,7 @@
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Release"
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
enableASanStackUseAfterReturn = "YES"
|
||||
|
Loading…
Reference in New Issue
Block a user