Immerseum.VRSimulator Namespace > EventManager Class : OnPrimaryTriggerDeactivation Event |
If default InputActions are enabled, fired when the default togglePrimaryTriggerInputAction has been received and MovementManager.isPrimaryTriggerInUse is true.
public event EventManager.PrimaryTriggerDeactivation OnPrimaryTriggerDeactivation
public class myClass : MonoBehaviour { void OnEnable() { EventManager.OnPrimaryTriggerDeactivation += myCustomListener; } void OnDisable() { EventManager.OnPrimaryTriggerDeactivation -= myCustomListener; } void myCustomListener(InputAction action) { // Custom listener logic goes here. } }