Immerseum.VRSimulator Namespace > EventManager Class : OnLeftBumperActivation Event |
If default InputActions are enabled, fired when the default toggleLeftBumperInputAction has been received.
Be Aware | |||
The default InputAction configuration used by the VRSimulator assumes that the button is not toggle-able. This means this event will be fired each and every time the button is pressed, regardless of whether the button had been pressed before.
|
public event EventManager.LeftBumperActivation OnLeftBumperActivation
public class myClass : MonoBehaviour { void OnEnable() { EventManager.OnLeftBumperActivation += myCustomListener; } void OnDisable() { EventManager.OnLeftBumperActivation -= myCustomListener; } void myCustomListener() { // Custom listener logic goes here. } }