100101102103104105106
@Override public void assignButton(String mappingName, int buttonId){ if (buttonId < 0 || buttonId >= getButtonCount()) throw new IllegalArgumentException(); inputManager.addMapping(mappingName, new JoyButtonTrigger(joyId, buttonId)); }
60616263646566
* on the joystick. * * @param mappingName The mapping to receive joystick button events. */ public void assignButton(String mappingName) { inputManager.addMapping(mappingName, new JoyButtonTrigger(parent.getJoyId(), buttonIndex)); }