API reference
API reference
Select your platform
No SDKs available
No versions available

DPadUnityEventWrapper Class

Extends MonoBehaviour
Translates Axis2D events into D-Pad events (Left, Right, Up, Down) and outputs them as UnityEvents.
Events will be fired as soon as the axis exits the deadzone.

Properties

IAxis2D Axis[Get]
float PositiveDeadZone[Get]
float NegativeDeadZone[Get]

Fields

UnityEvent WhenPressLeft[Get]
UnityEvent WhenPressRight[Get]
UnityEvent WhenPressUp[Get]
UnityEvent WhenPressDown[Get]

Protected Fields

bool _started[Get]

Protected Functions

virtual void Awake ( )
virtual void Start ( )
virtual void OnEnable ( )
virtual void OnDisable ( )
virtual void Update ( )

Member Functions

void InjectAllDPadUnityEventWrapper
( IAxis2D axis )
void InjectAxis
( IAxis2D axis )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon