Пример #1
0
  public void createGameActions() {
    super.createGameActions();
    moveLeft = new GameAction("moveLeft", GameAction.NORMAL, Keyboard.KEY_LEFT);
    moveRight = new GameAction("moveRight", GameAction.NORMAL, Keyboard.KEY_RIGHT);
    moveUp = new GameAction("moveUp", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_UP);
    moveDown = new GameAction("moveDown", GameAction.NORMAL, Keyboard.KEY_DOWN);
    zoomIn = new GameAction("zoomIn", GameAction.NORMAL, Keyboard.KEY_HOME);
    zoomOut = new GameAction("zoomOut", GameAction.NORMAL, Keyboard.KEY_END);

    drawMode = new GameAction("drawMode", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_T);
    modTex = new GameAction("modTex", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_M);
    debug = new GameAction("debug", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_SPACE);
  }