Commit 474ebb28 authored by Don Gagne's avatar Don Gagne

Fix boundary problem

parent 8883e5b2
......@@ -150,7 +150,7 @@ void JoystickConfigController::_setupCurrentState(void)
void JoystickConfigController::_axisValueChanged(int axis, int value)
{
if (axis >= 0 && axis <= _axisMax) {
if (axis >= 0 && axis < _axisMax) {
// We always update raw values
_axisRawValue[axis] = value;
emit axisValueChanged(axis, _axisRawValue[axis]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment