java.lang.Object
com.example.brickpaint.BrickKeys
Handles keyboard input and methods for the BrickPaintController Class
- Author:
- matde
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.example.brickpaint.BrickKeys.InputHandlerThe Instance of the Input Handler for this class that manages the dictionary of pressed keys -
Constructor Summary
ConstructorsConstructorDescriptionBrickKeys(javafx.scene.Scene input, BrickPaintController main) Constructor for BrickKeys that defines the scene and controller -
Method Summary
Modifier and TypeMethodDescriptionvoidreset()resets the view of the canvasPanel from the controller class, triggered with CTRL+RvoidHandles creation of the event handlers for key events and calls the appropriate method
-
Field Details
-
activeKeys
public com.example.brickpaint.BrickKeys.InputHandler activeKeysThe Instance of the Input Handler for this class that manages the dictionary of pressed keys
-
-
Constructor Details
-
BrickKeys
Constructor for BrickKeys that defines the scene and controller- Parameters:
input- The scene in which to look for key eventsmain- The controller class that will "own" this instance of BrickKeys
-
-
Method Details
-
SetKeyBinds
public void SetKeyBinds()Handles creation of the event handlers for key events and calls the appropriate method -
reset
public void reset()resets the view of the canvasPanel from the controller class, triggered with CTRL+R
-