runInputActionHandler

Helper function to run an input action handler through one of the possible overloads.

Parameters

handler void delegate
()
@safe

Handler for the action. The handler may choose to return a boolean, indicating if it handled (true) or ignored the action (false).

It may also optionally accept the input action enum, for example FluidInputAction, if all of its events are bound to its members (like FluidInputAction.press).

Return Value

Type: bool

True if the handler responded to this action, false if not.

Meta