Skip to content

Commit

Permalink
Reduce in-game axis bind threshold for mouse control.
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaMoo committed Jul 15, 2019
1 parent 1f64e81 commit dd2049c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UI/EmuScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -884,9 +884,9 @@ 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)) {
if (direction == 1 && (axis.value >= AXIS_BIND_THRESHOLD || g_Config.bMouseControl && axis.value >= 0.01)) {
axisState = 1;
} else if (direction == -1 && axis.value <= -AXIS_BIND_THRESHOLD) {
} else if (direction == -1 && (axis.value <= -AXIS_BIND_THRESHOLD || g_Config.bMouseControl && axis.value <= -0.01)) {
axisState = -1;
} else {
axisState = 0;
Expand Down

0 comments on commit dd2049c

Please sign in to comment.