Interface InputFilter


public interface InputFilter
This interface can be used to programmatically intercept input from the user and decide if the input should be passed on to the interactable. It's also possible to fire custom actions for certain keystrokes.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onInput(Interactable interactable, KeyStroke keyStroke)
    Called when the component is about to receive input from the user and decides if the input should be passed on to the component or not
  • Method Details

    • onInput

      boolean onInput(Interactable interactable, KeyStroke keyStroke)
      Called when the component is about to receive input from the user and decides if the input should be passed on to the component or not
      Parameters:
      interactable - Interactable that the input is directed to
      keyStroke - User input
      Returns:
      true if the input should be passed on to the interactable, false otherwise