mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-04 03:33:44 +01:00
Reduce in-game axis bind threshold for mouse control.
This commit is contained in:
1 parent
1f64e81f9e
commit
3f77bb1da5
2 files changed
+4
-2
No files matched your search
+3
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user