![]() |
Style Slasher
A dressup combat roguelike created by Scrungle Studios for the 2025 Swinburne Capstone project.
|
A general InputHandler for 2-dimension analogue stick InputActions. More...
Public Member Functions | |
Analogue2DInputHandler (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 | |
Vector2 | Value [get] |
override List< BaseInputReceiver > | receivers [get] |
![]() | |
List< BaseInputReceiver > | receivers [get] |
InputAction | inputAction [get] |
Events | |
Action< bool > | OnInputStateChange [add, remove] |
Action< Vector2 > | OnInputValue [add, remove] |
Private Member Functions | |
void | OnInputStart (InputAction.CallbackContext context) |
void | OnInputPerformed (InputAction.CallbackContext context) |
void | OnInputCancelled (InputAction.CallbackContext context) |
Private Attributes | |
InputReceiver< bool > | inputState = new() |
InputReceiver< Vector2 > | inputValue = new() |
List< BaseInputReceiver > | receiversBuffer |
A general InputHandler for 2-dimension analogue stick InputActions.
Slasher.Input.Analogue2DInputHandler.Analogue2DInputHandler | ( | 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 |
|
get |
|
addremove |
|
addremove |