mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 18:49:51 +01:00
Replace mouse control with mouse ID check.
This commit is contained in:
1 parent
6e5bd21378
commit
ecc5441cd0
1 file changed
+1
-1
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user