Package rekit.gui

Interface InputHelper


public interface InputHelper
This interface establishes a Listener to Components of the View.
Author:
Dominik Fuchss
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Key ID ArrowUp.
    static final int
    Key ID Arrow Left.
    static final int
    Key ID Arrow Right.
    static final int
    Key ID ArrowUp.
    static final int
    Key ID Enter.
    static final int
    Key ID Escape.
    static final int
    Key ID Space.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Initialize the InputHelper.
    void
    press(int keyCode)
    This method will invoked when a key is pressed.
    void
    release(int keyCode)
    This method will invoked when a key is released.
  • Field Details

  • Method Details

    • initialize

      default void initialize(View view)
      Initialize the InputHelper.
      Parameters:
      view - the view of the MVC
    • press

      void press(int keyCode)
      This method will invoked when a key is pressed.
      Parameters:
      keyCode - the keycode
    • release

      void release(int keyCode)
      This method will invoked when a key is released.
      Parameters:
      keyCode - the keycode