Class KeyBoardInputs

java.lang.Object
controller.inputs.KeyBoardInputs
All Implemented Interfaces:
KeyListener, EventListener

public class KeyBoardInputs extends Object implements KeyListener
This class implements the KeyListener interface. Controller for listening to keyboard inputs and handling them, rerouting the information to the right input controller based on the game state.
  • Constructor Details

    • KeyBoardInputs

      public KeyBoardInputs(GamePanel gamePanel)
      Constructs a new KeyBoardInputs.
      Parameters:
      gamePanel - the game panel
  • Method Details