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