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 TypeMethodDescriptionboolean
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
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 tokeyStroke
- User input- Returns:
true
if the input should be passed on to the interactable,false
otherwise
-