Class InputCore

java.lang.Object
fr.formiko.kokcinelo.InputCore
All Implemented Interfaces:
com.badlogic.gdx.InputProcessor

public class InputCore extends Object implements com.badlogic.gdx.InputProcessor
React to user inputs.
Since:
0.1
Version:
0.2
  • Constructor Details

    • InputCore

      public InputCore(GameScreen screen)
      Main constructor.
      Parameters:
      screen - screen to interact with
  • Method Details

    • scrolled

      public boolean scrolled(float amountX, float amountY)
      Zoom in or out for the camera.
      Specified by:
      scrolled in interface com.badlogic.gdx.InputProcessor
      See Also:
      • InputProcessor.scrolled(float, float)
    • keyUp

      public boolean keyUp(int keycode)
      React to key pressed once.
      Specified by:
      keyUp in interface com.badlogic.gdx.InputProcessor
      Parameters:
      keycode - the key pressed
    • keyDown

      public boolean keyDown(int keycode)
      Specified by:
      keyDown in interface com.badlogic.gdx.InputProcessor
    • keyTyped

      public boolean keyTyped(char character)
      Specified by:
      keyTyped in interface com.badlogic.gdx.InputProcessor
    • touchDown

      public boolean touchDown(int x, int y, int pointer, int button)
      Specified by:
      touchDown in interface com.badlogic.gdx.InputProcessor
    • touchUp

      public boolean touchUp(int x, int y, int pointer, int button)
      Specified by:
      touchUp in interface com.badlogic.gdx.InputProcessor
    • touchDragged

      public boolean touchDragged(int x, int y, int pointer)
      Specified by:
      touchDragged in interface com.badlogic.gdx.InputProcessor
    • mouseMoved

      public boolean mouseMoved(int x, int y)
      Specified by:
      mouseMoved in interface com.badlogic.gdx.InputProcessor