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