示例#1
0
  private void onJoyButtonEventQueued(JoyButtonEvent evt) {
    //        for (int i = 0; i < rawListeners.size(); i++){
    //            rawListeners.get(i).onJoyButtonEvent(evt);
    //        }

    int hash = JoyButtonTrigger.joyButtonHash(evt.getJoyIndex(), evt.getButtonIndex());
    invokeActions(hash, evt.isPressed());
    invokeTimedActions(hash, evt.getTime(), evt.isPressed());
  }
  @Override
  public void onJoyButtonEvent(JoyButtonEvent arg0) {
    a.onAction(Integer.toString(arg0.getButtonIndex()), arg0.isPressed(), arg0.isPressed() ? 1 : 0);

    arg0.isConsumed();
  }