Class BrickKeys

java.lang.Object
com.example.brickpaint.BrickKeys

public class BrickKeys extends Object
Handles keyboard input and methods for the BrickPaintController Class
Author:
matde
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    com.example.brickpaint.BrickKeys.InputHandler
    The Instance of the Input Handler for this class that manages the dictionary of pressed keys
  • Constructor Summary

    Constructors
    Constructor
    Description
    BrickKeys(javafx.scene.Scene input, BrickPaintController main)
    Constructor for BrickKeys that defines the scene and controller
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    resets the view of the canvasPanel from the controller class, triggered with CTRL+R
    void
    Handles creation of the event handlers for key events and calls the appropriate method

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • activeKeys

      public com.example.brickpaint.BrickKeys.InputHandler activeKeys
      The Instance of the Input Handler for this class that manages the dictionary of pressed keys
  • Constructor Details

    • BrickKeys

      public BrickKeys(javafx.scene.Scene input, BrickPaintController main)
      Constructor for BrickKeys that defines the scene and controller
      Parameters:
      input - The scene in which to look for key events
      main - 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