joystick: add ability to manually set axis center point

This commit is contained in:
tyler miller 2025-01-10 13:18:43 -05:00
parent 5d6246a001
commit 3a514fd381

View file

@ -158,6 +158,18 @@ void AlignedJoy::setCalibratedPoint(axis_t axis, point_t point, uint16_t pointVa
} }
break; break;
case MID:
switch(axis)
{
case X:
this->xAxisCalibCenter = pointValue;
break;
case Y:
this->yAxisCalibCenter = pointValue;
break;
}
break;
case MAX: case MAX:
switch(axis) switch(axis)
{ {