Skip to content

Commit

Permalink
Update base and add meta files
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDarksideJ committed Feb 17, 2024
1 parent 84250b2 commit 88abe07
Show file tree
Hide file tree
Showing 32 changed files with 302 additions and 35 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Editor/OpenXRPackageInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

using RealityCollective.Editor.Utilities;
using RealityCollective.Extensions;
using RealityCollective.ServiceFramework;
using RealityCollective.ServiceFramework.Editor;
using RealityCollective.ServiceFramework.Editor.Packages;
using RealityToolkit.Editor;
using System.IO;
using UnityEditor;
using UnityEngine;
Expand Down
11 changes: 11 additions & 0 deletions Editor/OpenXRPackageInstaller.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions Editor/OpenXRPackageModulesInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
using RealityCollective.ServiceFramework.Definitions;
using RealityCollective.ServiceFramework.Editor.Packages;
using RealityCollective.ServiceFramework.Services;
using RealityToolkit.OpenXR.Definitions;
using RealityToolkit.OpenXR.Interfaces;
using System.Linq;
using UnityEditor;

Expand Down Expand Up @@ -39,6 +37,7 @@ static OpenXRPackageModulesInstaller()
/// <inheritdoc/>
public bool Install(ServiceConfiguration serviceConfiguration)
{
/*
if (!typeof(IOpenXRModule).IsAssignableFrom(serviceConfiguration.InstancedType.Type))
{
// This module installer does not accept the configuration type.
Expand Down Expand Up @@ -76,8 +75,8 @@ public bool Install(ServiceConfiguration serviceConfiguration)
{
UnityEngine.Debug.Log($"Skipped installing the {serviceConfiguration.InstancedType.Type.Name} to {OpenXRProfile.name}. Already installed.");
}

*/
return true;
}
}
}
}
11 changes: 11 additions & 0 deletions Editor/OpenXRPackageModulesInstaller.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Editor/OpenXRPathFinder.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Editor/RealityToolkit.OpenXR.Editor.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions LICENSE.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions README.md.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Runtime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Runtime/InputService.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Runtime/InputService/IOpenXRControllerServiceModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityToolkit.Input.Interfaces.Modules;

namespace RealityToolkit.OpenXR
{
/// <summary>
/// Fully qualifies the <see cref="OpenXRPlatform"/> specific implementation of <see cref="IControllerServiceModule"/>.
/// </summary>
public interface IOpenXRControllerServiceModule : IControllerServiceModule { }
}
11 changes: 11 additions & 0 deletions Runtime/InputService/IOpenXRControllerServiceModule.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Runtime/InputService/IOpenXRHandControllerServiceModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityToolkit.Input.Hands;

namespace RealityToolkit.OpenXR
{
/// <summary>
/// Fully qualifies the <see cref="OpenXRPlatform"/> specific implementation of <see cref="IHandControllerServiceModule"/>.
/// </summary>
public interface IOpenXRHandControllerServiceModule : IHandControllerServiceModule { }
}
11 changes: 11 additions & 0 deletions Runtime/InputService/IOpenXRHandControllerServiceModule.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions Runtime/InputService/OpenXRControllerServiceModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace RealityToolkit.OpenXR
{
public class OpenXRControllerServiceModule : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}
}
}
11 changes: 11 additions & 0 deletions Runtime/InputService/OpenXRControllerServiceModule.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions Runtime/InputService/OpenXRHandControllerServiceModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace RealityToolkit.OpenXR
{
public class OpenXRHandControllerServiceModule : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}
}
}
11 changes: 11 additions & 0 deletions Runtime/InputService/OpenXRHandControllerServiceModule.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 11 additions & 30 deletions Runtime/OpenXRPlatform.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Copyright (c) Reality Collective. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.

using RealityCollective.ServiceFramework.Definitions.Platforms;
using RealityCollective.ServiceFramework.Interfaces;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR;
using XRTK.Definitions.Platforms;
using XRTK.Interfaces;

namespace RealityToolkit.OpenXR
{
Expand All @@ -15,39 +15,21 @@ namespace RealityToolkit.OpenXR
[System.Runtime.InteropServices.Guid("72c2e15b-d4ae-4e10-83bd-6e670b37efdd")]
public class OpenXRPlatform : BasePlatform
{
private const string xrDisplaySubsystemDescriptorId = "OpenXR Display";
private const string xrInputSubsystemDescriptorId = "OpenXR Input";

/// <inheritdoc />
public override IMixedRealityPlatform[] PlatformOverrides { get; } =
public override IPlatform[] PlatformOverrides { get; } =
{
//new AndroidPlatform()
//new WindowsStandalonePlatform()
new AndroidPlatform(),
new WindowsStandalonePlatform()
};
/*
Choose a path for Is Platform available at runtime
/// <inheritdoc />
public override bool IsAvailable =>
!Application.isEditor && OpenXRApi.Version > NoVersion && OpenXRApi.Initialized;
*/

/// <inheritdoc />
public override bool IsAvailable
{
get
{
var displaySubsystems = new List<XRDisplaySubsystem>();
SubsystemManager.GetSubsystems(displaySubsystems);
var xrDisplaySubsystemDescriptorFound = false;

for (var i = 0; i < displaySubsystems.Count; i++)
{
var displaySubsystem = displaySubsystems[i];
if (displaySubsystem.SubsystemDescriptor.id.Equals(xrDisplaySubsystemDescriptorId) &&
displaySubsystem.running)
{
xrDisplaySubsystemDescriptorFound = true;
}
}
var xrDisplaySubsystemDescriptorFound = displaySubsystems.Count > 0;

// The XR Display Subsystem is not available / running,
// the platform doesn't seem to be available.
Expand All @@ -63,15 +45,14 @@ public override bool IsAvailable
for (var i = 0; i < inputSubsystems.Count; i++)
{
var inputSubsystem = inputSubsystems[i];
if (inputSubsystem.SubsystemDescriptor.id.Equals(xrInputSubsystemDescriptorId) &&
inputSubsystem.running)
if (!xrInputSubsystemDescriptorFound)
{
xrInputSubsystemDescriptorFound = true;
xrInputSubsystemDescriptorFound = inputSubsystem.running;
}
}

// The XR Input Subsystem is not available / running,
// the platform doesn't seem to be available.
// The No XR Input Subsystem found / running,
// no platforms are available.
if (!xrInputSubsystemDescriptorFound)
{
return false;
Expand Down
11 changes: 11 additions & 0 deletions Runtime/OpenXRPlatform.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Runtime/RealityToolkit.OpenXR.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Tests.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Tests/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Tests/Editor/EditorExampleTest.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Tests/Editor/RealityToolkit.OpenXR.Editor.Tests.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Tests/Runtime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 88abe07

Please sign in to comment.