early-access version 3742
This commit is contained in:
parent
fd52b1be6b
commit
0334ddc2e5
2 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 3741.
|
This is the source code for early-access 3742.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
|
|
@ -160,8 +160,9 @@ void Mouse::Move(int x, int y, int center_x, int center_y) {
|
||||||
last_mouse_change.y += mouse_change.y * y_sensitivity;
|
last_mouse_change.y += mouse_change.y * y_sensitivity;
|
||||||
|
|
||||||
// Bind the mouse change to [0 <= deadzone_counterweight <= 1.0]
|
// Bind the mouse change to [0 <= deadzone_counterweight <= 1.0]
|
||||||
if (last_mouse_change.Length() < deadzone_counterweight) {
|
const float length = last_mouse_change.Length();
|
||||||
last_mouse_change /= last_mouse_change.Length();
|
if (length < deadzone_counterweight && length != 0.0f) {
|
||||||
|
last_mouse_change /= length;
|
||||||
last_mouse_change *= deadzone_counterweight;
|
last_mouse_change *= deadzone_counterweight;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue