mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 19:08:32 +08:00
apply @Baderian's joystick fix
This commit is contained in:
@@ -2027,8 +2027,8 @@ protected:
|
|||||||
}
|
}
|
||||||
DOSBox_Vector2 v;
|
DOSBox_Vector2 v;
|
||||||
ProcessInput(x, y, deadzone, v);
|
ProcessInput(x, y, deadzone, v);
|
||||||
float x1 = (sgn(v.X) * fabs(pow(v.X, response)));
|
float x1 = (sgn(v.X) * pow(fabs(v.X), response));
|
||||||
float y1 = (sgn(v.Y) * fabs(pow(v.Y, response)));
|
float y1 = (sgn(v.Y) * pow(fabs(v.Y), response));
|
||||||
DOSBox_Vector2 v1(x1, y1);
|
DOSBox_Vector2 v1(x1, y1);
|
||||||
return v1;
|
return v1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user