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