mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-14 08:12:16 +00:00
fix rough mouse movement due to incorrect check (#2911)
Co-authored-by: rnglol <kek@example.com>
This commit is contained in:
parent
f94c7e52b7
commit
b3abb83fc5
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ Uint32 MousePolling(void* param, Uint32 id, Uint32 interval) {
|
|||
float angle = atan2(d_y, d_x);
|
||||
float a_x = cos(angle) * output_speed, a_y = sin(angle) * output_speed;
|
||||
|
||||
if (d_x != 0 && d_y != 0) {
|
||||
if (d_x != 0 || d_y != 0) {
|
||||
controller->Axis(0, axis_x, GetAxis(-0x80, 0x7f, a_x));
|
||||
controller->Axis(0, axis_y, GetAxis(-0x80, 0x7f, a_y));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue