Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [view as Desktop | Tablet | Mobile]
OnXAxisMovementStart Event
Example 
If default InputActions are enabled, then this event fires whenever the xAxisMovementInputAction ceases to be at rest.
Syntax
public event EventManager.XAxisMovementStartAction OnXAxisMovementStart
Example
public class myClass : MonoBehaviour {
    void OnEnable() {
        EventManager.OnXAxisMovementStart += myCustomListener;
    }
    
    void OnDisable() {
        EventManager.OnXAxisMovementStart -= myCustomListener;
    }
    
    void myCustomListener(InputAction action) {
        // Custom listener logic goes here.
    }
}
See Also

Reference

EventManager Class
EventManager Members

 

 


Copyright (c) 2016-2017 Immerseum Inc. All rights reserved.

Send Feedback