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