Class TouchTractorInputComponent

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.input.InputComponent
com.csse3200.game.components.tractor.TouchTractorInputComponent
All Implemented Interfaces:
com.badlogic.gdx.input.GestureDetector.GestureListener, com.badlogic.gdx.InputProcessor, com.badlogic.gdx.utils.Json.Serializable

public class TouchTractorInputComponent extends InputComponent
Almost certain this class does nothing but is needs as when you make a InputController it makes both May need to be updated later to better match the Keyboard verison.
  • Constructor Details

    • TouchTractorInputComponent

      public TouchTractorInputComponent()
      Constructor for the tractor, sets same priority as the player's input constructor
  • Method Details

    • keyDown

      public boolean keyDown(int keycode)
      Triggers player events on specific keycodes.
      Specified by:
      keyDown in interface com.badlogic.gdx.InputProcessor
      Overrides:
      keyDown in class InputComponent
      Returns:
      whether the input was processed
      See Also:
      • InputProcessor.keyDown(int)
    • keyUp

      public boolean keyUp(int keycode)
      Triggers player events on specific keycodes.
      Specified by:
      keyUp in interface com.badlogic.gdx.InputProcessor
      Overrides:
      keyUp in class InputComponent
      Returns:
      whether the input was processed
      See Also:
      • InputProcessor.keyUp(int)