Skip to content

Commit bdb7edb

Browse files
committed
add old conditionals for ENABLE_VR || UNITY_GAMECORE for InputDeviceCharacteristics
1 parent 23e316a commit bdb7edb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/XR/GenericXRDevice.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public class XRController : TrackedDevice
112112
protected override void FinishSetup()
113113
{
114114
base.FinishSetup();
115-
#if UNITY_INPUT_SYSTEM_ENABLE_XR
115+
#if UNITY_INPUT_SYSTEM_ENABLE_XR && (ENABLE_VR || UNITY_GAMECORE)
116116
var capabilities = description.capabilities;
117117
var deviceDescriptor = XRDeviceDescriptor.FromJson(capabilities);
118118

Packages/com.unity.inputsystem/InputSystem/Plugins/XR/XRLayoutBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ internal static string OnFindLayoutForDevice(ref InputDeviceDescription descript
8888
{
8989
return null;
9090
}
91-
#if UNITY_INPUT_SYSTEM_ENABLE_XR
91+
#if UNITY_INPUT_SYSTEM_ENABLE_XR && ENABLE_VR
9292
if (string.IsNullOrEmpty(matchedLayout))
9393
{
9494
const InputDeviceCharacteristics controllerCharacteristics = InputDeviceCharacteristics.HeldInHand | InputDeviceCharacteristics.Controller;

Packages/com.unity.inputsystem/InputSystem/Plugins/XR/XRSupport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public class XRDeviceDescriptor
102102
/// <summary>
103103
/// The capabilities of the device, used to help filter and identify devices that server a certain purpose (e.g. controller, or headset, or hardware tracker).
104104
/// </summary>
105-
#if UNITY_INPUT_SYSTEM_ENABLE_XR
105+
#if UNITY_INPUT_SYSTEM_ENABLE_XR && (ENABLE_VR || UNITY_GAMECORE)
106106
public InputDeviceCharacteristics characteristics;
107107
#else
108108
[SerializeField]

0 commit comments

Comments
 (0)