Пример #1
0
 @Override
 public void axisUnregistered(int joystickIndex, int axisIndex) {
   DriverStationPacket.Joystick j = driverStationPacket.getJoystick(joystickIndex);
   if (axisIndex == j.getAxisCount() - 1) {
     j.setAxisCount(axisIndex);
   }
 }
Пример #2
0
 @Override
 public void axisRegistered(int joystickIndex, int axisIndex) {
   DriverStationPacket.Joystick j = getJoystick(joystickIndex);
   if (j.getAxisCount() <= axisIndex) {
     j.setAxisCount(axisIndex + 1);
   }
 }