Package com.deco2800.game.input
Class KeyboardInputFactory
java.lang.Object
com.deco2800.game.input.InputFactory
com.deco2800.game.input.KeyboardInputFactory
public class KeyboardInputFactory extends InputFactory
KeyboardInputFactory creates input handlers that process keyboard and touch support.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.deco2800.game.input.InputFactory
InputFactory.InputType
-
Constructor Summary
Constructors Constructor Description KeyboardInputFactory()
-
Method Summary
Modifier and Type Method Description InputComponent
createForPlayer()
Creates an input handler for the player.InputComponent
createForTerminal()
Creates an input handler for the terminal.
-
Constructor Details
-
KeyboardInputFactory
public KeyboardInputFactory()
-
-
Method Details
-
createForPlayer
Creates an input handler for the player.- Specified by:
createForPlayer
in classInputFactory
- Returns:
- Player input handler
-
createForTerminal
Creates an input handler for the terminal.- Specified by:
createForTerminal
in classInputFactory
- Returns:
- Terminal input handler
-