Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
OnLeftBumperDeactivation Event
Example 
Event provided for extensibility of default InputActions. Intended to be used when the Left Bumper represents an "on / off" toggle, with one InputAction toggling it on (and therefore firing OnLeftBumperActivation) and a different InputAction toggling it off (and thus firing OnLeftBumperDeactivation).
Syntax
public event EventManager.LeftBumperDeactivation OnLeftBumperDeactivation
Example
public class myClass : MonoBehaviour {
    void OnEnable() {
        EventManager.OnLeftBumperDeactivation += myCustomListener;
    }
    
    void OnDisable() {
        EventManager.OnLeftBumperDeactivation -= myCustomListener;
    }
    
    void myCustomListener() {
        // Custom listener logic goes here.
    }
}
See Also

Reference

EventManager Class
EventManager Members

 

 


Copyright (c) 2015 Immerseum Inc. All rights reserved.

Send Feedback