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

ControllerAxis2D Class

Extends MonoBehaviour
Implements IAxis2D
Will provide as an IAxis2D the joystick value of an IController.
Note that multiple Axis can be read together, in that case it will return the sum of all axis.

Protected Fields

_started : bool
Signature
bool _started

Properties

Axis : ControllerAxis2DUsage
[Get][Set]
Signature
ControllerAxis2DUsage Axis

Protected Methods

Awake ()
Signature
virtual void Awake()
Returns
void
Start ()
Signature
virtual void Start()
Returns
void

Methods

InjectAllControllerAxis2DActiveState ( controller )
Signature
void InjectAllControllerAxis2DActiveState(IController controller)
Parameters
controller: IController
Returns
void
InjectController ( controller )
Signature
void InjectController(IController controller)
Parameters
controller: IController
Returns
void
Value ()
Signature
Vector2 Value()
Returns
Vector2