runInputActionHandler

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

Parameters

action T

Evaluated input action type. Presently, this is an enum member of the input action it comes from. InputActionID cannot be used here.

handler bool 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