joystick: add ability to manually set axis center point
This commit is contained in:
parent
5d6246a001
commit
3a514fd381
|
@ -158,6 +158,18 @@ void AlignedJoy::setCalibratedPoint(axis_t axis, point_t point, uint16_t pointVa
|
|||
}
|
||||
break;
|
||||
|
||||
case MID:
|
||||
switch(axis)
|
||||
{
|
||||
case X:
|
||||
this->xAxisCalibCenter = pointValue;
|
||||
break;
|
||||
case Y:
|
||||
this->yAxisCalibCenter = pointValue;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case MAX:
|
||||
switch(axis)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue