Class KeyboardLightingInputTestComponent

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.input.InputComponent
com.csse3200.game.components.lighting.KeyboardLightingInputTestComponent
All Implemented Interfaces:
com.badlogic.gdx.input.GestureDetector.GestureListener, com.badlogic.gdx.InputProcessor

public class KeyboardLightingInputTestComponent extends InputComponent
This class was lazily copied from the player input handler (as you can probably tell) just to test the dynamic movement and rotation of the lights.
  • Constructor Details

    • KeyboardLightingInputTestComponent

      public KeyboardLightingInputTestComponent()
  • Method Details

    • keyDown

      public boolean keyDown(int keycode)
      Specified by:
      keyDown in interface com.badlogic.gdx.InputProcessor
      Overrides:
      keyDown in class InputComponent
      See Also:
      • InputProcessor.keyDown(int)
    • keyUp

      public boolean keyUp(int keycode)
      Triggers 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)