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