Replace UltimateXR with HurricaneVR
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using HurricaneVR.Framework.Shared;
|
||||
using UnityEngine.Events;
|
||||
namespace HurricaneVR.Framework.ControllerInput.InputEvents
|
||||
{
|
||||
public class HVRGripButtonEvents : HVRInputAction
|
||||
{
|
||||
public UnityEvent Activated = new UnityEvent();
|
||||
public UnityEvent Deactivated = new UnityEvent();
|
||||
|
||||
public float Value;
|
||||
|
||||
protected override void CheckInput(HVRController controller)
|
||||
{
|
||||
Value = controller.Grip;
|
||||
|
||||
if (controller.GripButtonState.JustActivated)
|
||||
{
|
||||
Activated.Invoke();
|
||||
}
|
||||
else if (controller.GripButtonState.JustDeactivated)
|
||||
{
|
||||
Deactivated.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user