![]() |
Style Slasher
A dressup combat roguelike created by Scrungle Studios for the 2025 Swinburne Capstone project.
|
A general InputHandler for button InputActions. More...
Public Member Functions | |
ButtonInputHandler (string actionMapPath, string actionPath) | |
![]() | |
BaseInputHandler (string actionMapPath, string actionPath) | |
Protected Member Functions | |
override bool | TryAddListeners () |
Tries to add listeners, if they haven't been added already. | |
override bool | TryRemoveListeners () |
Tries to remove listeners, if they've been added. | |
Properties | |
override List< BaseInputReceiver > | receivers [get] |
![]() | |
List< BaseInputReceiver > | receivers [get] |
InputAction | inputAction [get] |
Events | |
Action | OnButtonPerformed [add, remove] |
Maps to the InputAction's .performed event. | |
Action< bool > | OnInputStateChange [add, remove] |
Maps to the InputAction's .start event when true, and .cancelled event when false. | |
Private Member Functions | |
void | OnInputStart (InputAction.CallbackContext context) |
void | OnInputPerformed (InputAction.CallbackContext context) |
void | OnInputCancelled (InputAction.CallbackContext context) |
Private Attributes | |
InputReceiver | inputPerformed = new() |
InputReceiver< bool > | inputState = new() |
List< BaseInputReceiver > | receiversBuffer |
A general InputHandler for button InputActions.
Slasher.Input.ButtonInputHandler.ButtonInputHandler | ( | string | actionMapPath, |
string | actionPath ) |
|
private |
|
private |
|
private |
|
protectedvirtual |
Tries to add listeners, if they haven't been added already.
Reimplemented from Slasher.Input.BaseInputHandler.
|
protectedvirtual |
Tries to remove listeners, if they've been added.
The buffered values of receivers are wiped when listeners are removed.
Reimplemented from Slasher.Input.BaseInputHandler.
|
private |
|
private |
|
private |
|
getprotected |
|
addremove |
Maps to the InputAction's .performed event.
|
addremove |
Maps to the InputAction's .start event when true, and .cancelled event when false.