Пример #1
0
    private void OnTriggerPressed()
    {
        ControllerInteractionEventArgs e = new ControllerInteractionEventArgs
        {
            buttonPressure      = 1,
            controllerReference = new VRTK_ControllerReference(1),
            touchpadAxis        = new Vector2(0, -1),
            touchpadAngle       = 1,
            touchpadTwoAxis     = new Vector2(0, -1),
            touchpadTwoAngle    = 1
        };

        ControllerEvents.OnTriggerPressed(e);
    }
Пример #2
0
 public void TriggerPressed()
 {
     controllerEvents?.OnTriggerPressed(new ControllerInteractionEventArgs());
 }