public void init() throws Exception {
    LogUtil.put(LogFactory.getInstance("Start", this, "init"));

    PCKeyFactory.getInstance();
    TouchMotionGestureFactory.getInstance();
    TrackballMotionGestureFactory.getInstance();
    // OrientationMotionGestureFactory.getInstance();
    BasicTouchInputFactory.getInstance();

    super.init();

    if (this.getTotalMapped() == 0 || this.isDefaultNew()) {
      this.getInputMapping().add(this.getDefault());
      this.save();
    }
  }
 public void onInputMappingEvent(InputMappingEvent inputMappingEvent) throws Exception {
   GameKeyCompleteMotionGestureInputEventFactory.getInstance().updateAll();
   BasicTouchInputFactory.getInstance().updateAll(inputMappingEvent.getInputToGameKeyMapping());
 }