mirror of
https://github.com/TomHarte/CLK.git
synced 2024-10-05 23:56:33 +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[0]) >= mouse_threshold_[0]) ||
|
||||||
(abs(captured_movement[1]) >= mouse_threshold_[1]) ) {
|
(abs(captured_movement[1]) >= mouse_threshold_[1]) ) {
|
||||||
mouse_movement_[0] -= captured_movement[0];
|
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;
|
} break;
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@
|
|||||||
</Testables>
|
</Testables>
|
||||||
</TestAction>
|
</TestAction>
|
||||||
<LaunchAction
|
<LaunchAction
|
||||||
buildConfiguration = "Release"
|
buildConfiguration = "Debug"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
enableASanStackUseAfterReturn = "YES"
|
enableASanStackUseAfterReturn = "YES"
|
||||||
|
Loading…
Reference in New Issue
Block a user