@Override public void axisUnregistered(int joystickIndex, int axisIndex) { DriverStationPacket.Joystick j = driverStationPacket.getJoystick(joystickIndex); if (axisIndex == j.getAxisCount() - 1) { j.setAxisCount(axisIndex); } }
@Override public void axisRegistered(int joystickIndex, int axisIndex) { DriverStationPacket.Joystick j = getJoystick(joystickIndex); if (j.getAxisCount() <= axisIndex) { j.setAxisCount(axisIndex + 1); } }