Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [view as Desktop | Tablet | Mobile]
OnSecondaryTriggerActivation Event
Example 

If default InputActions are enabled, fired when the default toggleSecondaryTriggerInputAction has been received and MovementManager.isSecondaryTriggerInUse is false.

Syntax
public event EventManager.SecondaryTriggerActivation OnSecondaryTriggerActivation
Example
public class myClass : MonoBehaviour {
    void OnEnable() {
        EventManager.OnSecondaryTriggerActivation += myCustomListener;
    }
    
    void OnDisable() {
        EventManager.OnSecondaryTriggerActivation -= 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