A class in Root.Township, the global namespace.
Input source that fires a single press and release when the controller's d-pad reports a swipe in its direction.
Constructors
Fields
1 private and internal field
| Member | What it is |
|---|
private PlayerInput playerInput | The hand input whose d-pad is watched. |
Properties
| Member | What it is |
|---|
int Direction { get; } | The swipe direction this source reacts to. |
Methods
| Member | What it is |
|---|
void AddListeners() | Subscribes to the d-pad's swipe event. |
void RemoveListeners() | Unsubscribes from the d-pad's swipe event. |
1 private and internal method
| Member | What it is |
|---|
private void KeyPressed(int direction) | On a swipe in this direction, presses and immediately releases. |