Reduce in-game axis bind threshold for mouse control.

This commit is contained in:
LunaMoo committed 2019-07-15 03:30:53 +02:00
1 parent 1f64e81f9e
commit 3f77bb1da5
2 files changed
+4 -2

No files matched your search

+3 -2
View File
@@ -884,9 +884,10 @@ void EmuScreen::processAxis(const AxisInput &axis, int direction) {
KeyMap::AxisToPspButton(axis.deviceId, axis.axisId, -direction, &resultsOpposite);
int axisState = 0;
if ((direction == 1 && axis.value >= AXIS_BIND_THRESHOLD)) {
float threshold = g_Config.bMouseControl ? AXIS_BIND_THRESHOLD_MOUSE : AXIS_BIND_THRESHOLD;
if (direction == 1 && axis.value >= threshold) {
axisState = 1;
} else if (direction == -1 && axis.value <= -AXIS_BIND_THRESHOLD) {
} else if (direction == -1 && axis.value <= -threshold) {
axisState = -1;
} else {
axisState = 0;