Replace UltimateXR with HurricaneVR

This commit is contained in:
2024-08-08 17:01:07 +02:00
parent e8658374d6
commit fb21dbbb73
5932 changed files with 358362 additions and 2174150 deletions

View File

@@ -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();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4c773e81cb9c97548984b0405de96a04
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRJoystickButtonEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.JoystickButtonState.JustActivated)
{
Activated.Invoke();
}
else if (controller.JoystickButtonState.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5790f4335c7cbd34393eac06ba1babd2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRJoystickTouchEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.JoystickTouchState.JustActivated)
{
Activated.Invoke();
}
else if (controller.JoystickTouchState.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7d50c4b7a2526094084ef1f8c684d967
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRMenuButtonEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.MenuButtonState.JustActivated)
{
Activated.Invoke();
}
else if (controller.MenuButtonState.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d089d1719788c3d48b9bfa0f21332090
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2b98dcb1ca8a3be4999be6c93fff5d07
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRPrimaryTouchButtonEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.PrimaryTouchButtonState.JustActivated)
{
Activated.Invoke();
}
else if (controller.PrimaryTouchButtonState.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7661c402b69812345ba71e28a39394df
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRSecondaryButtonEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.SecondaryButtonState.JustActivated)
{
Activated.Invoke();
}
else if (controller.SecondaryButtonState.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4197bc7562b4ffa4b8c9385912f0ece0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRSecondaryTouchButtonEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.SecondaryTouchButtonState.JustActivated)
{
Activated.Invoke();
}
else if (controller.SecondaryTouchButtonState.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 48fee757bfc3dad47bf38d83a2515334
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRThumbTouchEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.ThumbTouchState.JustActivated)
{
Activated.Invoke();
}
else if (controller.ThumbTouchState.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c525ea7fd95c1c441bcab7267d3856c3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRTrackPadDownEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.TrackPadDown.JustActivated)
{
Activated.Invoke();
}
else if (controller.TrackPadDown.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 92fbfe59fc667134b857688c59aad6af
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRTrackPadLeftEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.TrackPadLeft.JustActivated)
{
Activated.Invoke();
}
else if (controller.TrackPadLeft.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 91ee1ae41e1621e4787c76059d4cfad9
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRTrackPadRightEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.TrackPadRight.JustActivated)
{
Activated.Invoke();
}
else if (controller.TrackPadRight.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4480afa81378c6942ab2c57d49f852dd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRTrackPadTouchEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.TrackPadTouchState.JustActivated)
{
Activated.Invoke();
}
else if (controller.TrackPadTouchState.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4fe996b53b1d84d45942e667ad562962
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRTrackPadUpEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.TrackPadUp.JustActivated)
{
Activated.Invoke();
}
else if (controller.TrackPadUp.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0b4041c0db61d9047a8598079e59f2b3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRTrackpadButtonEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.TrackpadButtonState.JustActivated)
{
Activated.Invoke();
}
else if (controller.TrackpadButtonState.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0df599ae5b2a5d3469594004cdcb41e5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,26 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents
{
public class HVRTriggerButtonEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
public float Value;
protected override void CheckInput(HVRController controller)
{
Value = controller.Trigger;
if (controller.TriggerButtonState.JustActivated)
{
Activated.Invoke();
}
else if (controller.TriggerButtonState.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 531cb4b539136df43aebce206f6a260a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,21 @@
using HurricaneVR.Framework.Shared;
using UnityEngine.Events;
namespace HurricaneVR.Framework.ControllerInput.InputEvents{
public class HVRTriggerTouchEvents : HVRInputAction
{
public UnityEvent Activated = new UnityEvent();
public UnityEvent Deactivated = new UnityEvent();
protected override void CheckInput(HVRController controller)
{
if (controller.TriggerTouchState.JustActivated)
{
Activated.Invoke();
}
else if (controller.TriggerTouchState.JustDeactivated)
{
Deactivated.Invoke();
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6212f3feb19a46247bc9c73a6dbd06f8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: