Example #1
0
 @Override
 public void povHatUnregistered(int joystickIndex, int povHatIndex) {
   DriverStationPacket.Joystick j = driverStationPacket.getJoystick(joystickIndex);
   if (povHatIndex == j.getPOVHatCount() - 1) {
     j.setPOVHatCount(povHatIndex);
   }
 }
Example #2
0
 @Override
 public void buttonUnregistered(int joystickIndex, int buttonIndex) {
   DriverStationPacket.Joystick j = driverStationPacket.getJoystick(joystickIndex);
   if (buttonIndex == j.getButtonCount() - 1) {
     j.setButtonCount(buttonIndex);
   }
 }
Example #3
0
 @Override
 public void axisUnregistered(int joystickIndex, int axisIndex) {
   DriverStationPacket.Joystick j = driverStationPacket.getJoystick(joystickIndex);
   if (axisIndex == j.getAxisCount() - 1) {
     j.setAxisCount(axisIndex);
   }
 }
Example #4
0
 @Override
 public void povHatRegistered(int joystickIndex, int povHatIndex) {
   DriverStationPacket.Joystick j = getJoystick(joystickIndex);
   if (j.getPOVHatCount() <= povHatIndex) {
     j.setPOVHatCount(povHatIndex + 1);
   }
 }
Example #5
0
 @Override
 public void buttonRegistered(int joystickIndex, int buttonIndex) {
   DriverStationPacket.Joystick j = getJoystick(joystickIndex);
   if (j.getButtonCount() <= buttonIndex) {
     j.setButtonCount(buttonIndex + 1);
   }
 }
Example #6
0
 @Override
 public void axisRegistered(int joystickIndex, int axisIndex) {
   DriverStationPacket.Joystick j = getJoystick(joystickIndex);
   if (j.getAxisCount() <= axisIndex) {
     j.setAxisCount(axisIndex + 1);
   }
 }