Replace mouse control with mouse ID check.

This commit is contained in:
LunaMoo committed 2019-07-15 03:45:08 +02:00
1 parent 6e5bd21378
commit ecc5441cd0
1 file changed
+1 -1
+1 -1
View File
@@ -907,7 +907,7 @@ void EmuScreen::processAxis(const AxisInput &axis, int direction) {
KeyMap::AxisToPspButton(axis.deviceId, axis.axisId, -direction, &resultsOpposite);
int axisState = 0;
float threshold = g_Config.bMouseControl ? AXIS_BIND_THRESHOLD_MOUSE : g_Config.fAxisBindThreshold;
float threshold = axis.deviceId == DEVICE_ID_MOUSE ? AXIS_BIND_THRESHOLD_MOUSE : g_Config.fAxisBindThreshold;
if (direction == 1 && axis.value >= threshold) {
axisState = 1;
} else if (direction == -1 && axis.value <= -threshold) {