@@ -12,17 +12,17 @@ public static class XRUtilities
1212 /// <summary>
1313 /// A simple Regex pattern that allows InputDeviceMatchers to match to any version of the XRInput interface.
1414 /// </summary>
15- public const string kXRInterfaceMatchAnyVersion = "^(XRInput)" ;
15+ public const string InterfaceMatchAnyVersion = "^(XRInput)" ;
1616
1717 /// <summary>
1818 /// The initial, now deprecated interface for XRInput. This version handles button packing for Android differently from current.
1919 /// </summary>
20- public const string kXRInterfaceV1 = "XRInput" ;
20+ public const string InterfaceV1 = "XRInput" ;
2121
2222 /// <summary>
2323 /// The current interface code sent with devices to identify as XRInput devices.
2424 /// </summary>
25- public const string kXRInterfaceCurrent = "XRInputV1" ;
25+ public const string InterfaceCurrent = "XRInputV1" ;
2626 }
2727
2828 // Sync to UnityXRInputFeatureType in IUnityXRInput.h
@@ -104,93 +104,93 @@ public static void Initialize()
104104
105105 InputSystem . RegisterLayout < WMRHMD > (
106106 matches : new InputDeviceMatcher ( )
107- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
107+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
108108 . WithProduct ( "(Windows Mixed Reality HMD)|(Microsoft HoloLens)|(Acer AH100)|(Samsung Windows Mixed Reality 800ZAA)" )
109109 ) ;
110110 InputSystem . RegisterLayout < WMRSpatialController > (
111111 matches : new InputDeviceMatcher ( )
112- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
112+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
113113 . WithProduct ( @"(^(Spatial Controller))|(^(OpenVR Controller\(WindowsMR))" )
114114 ) ;
115115 InputSystem . RegisterLayout < HololensHand > (
116116 matches : new InputDeviceMatcher ( )
117- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
117+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
118118 . WithProduct ( @"(^(Hand -))" )
119119 ) ;
120120
121121 InputSystem . RegisterLayout < OculusHMD > (
122122 matches : new InputDeviceMatcher ( )
123- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
123+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
124124 . WithManufacturer ( "Oculus" )
125125 . WithProduct ( "^(Oculus Rift)" ) ) ;
126126 InputSystem . RegisterLayout < OculusTouchController > (
127127 matches : new InputDeviceMatcher ( )
128- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
128+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
129129 . WithManufacturer ( "Oculus" )
130130 . WithProduct ( @"((Oculus Touch Controller)|(^(OpenVR Controller\(Oculus Rift [a-zA-Z0-9]*)))" ) ) ;
131131 InputSystem . RegisterLayout < OculusRemote > (
132132 matches : new InputDeviceMatcher ( )
133- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
133+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
134134 . WithManufacturer ( "Oculus" )
135135 . WithProduct ( @"Oculus Remote" ) ) ;
136136 InputSystem . RegisterLayout < OculusTrackingReference > (
137137 matches : new InputDeviceMatcher ( )
138- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
138+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
139139 . WithProduct ( @"((Tracking Reference)|(^(Oculus Rift [a-zA-Z0-9]* \(Camera)))" ) ) ;
140140
141141 InputSystem . RegisterLayout < OculusStandaloneHMDBase > (
142142 name : "Oculus Go" ,
143143 matches : new InputDeviceMatcher ( )
144- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
144+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
145145 . WithProduct ( "Oculus Go" ) ) ;
146146
147147 InputSystem . RegisterLayout < OculusStandaloneHMDExtended > (
148148 name : "GearVR" ,
149149 matches : new InputDeviceMatcher ( )
150- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
150+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
151151 . WithProduct ( "Oculus HMD" ) ) ;
152152 InputSystem . RegisterLayout < GearVRTrackedController > (
153153 matches : new InputDeviceMatcher ( )
154- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
154+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
155155 . WithProduct ( "^(Oculus Tracked Remote)" ) ) ;
156156
157157 InputSystem . RegisterLayout < DaydreamHMD > (
158158 matches : new InputDeviceMatcher ( )
159- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
159+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
160160 . WithProduct ( "Daydream HMD" ) ) ;
161161 InputSystem . RegisterLayout < DaydreamController > (
162162 matches : new InputDeviceMatcher ( )
163- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
163+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
164164 . WithProduct ( "^(Daydream Controller)" ) ) ;
165165
166166 InputSystem . RegisterLayout < ViveHMD > (
167167 matches : new InputDeviceMatcher ( )
168- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
168+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
169169 . WithManufacturer ( "HTC" )
170170 . WithProduct ( @"^((Vive DVT)|(Vive MV.)|(Vive Pro)|(Vive. MV))" ) ) ;
171171 InputSystem . RegisterLayout < ViveWand > (
172172 matches : new InputDeviceMatcher ( )
173- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
173+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
174174 . WithManufacturer ( "HTC" )
175175 . WithProduct ( @"^(OpenVR Controller\(((Vive. Controller)|(VIVE. Controller)|(Vive Controller)))" ) ) ;
176176 InputSystem . RegisterLayout < KnucklesController > (
177177 matches : new InputDeviceMatcher ( )
178- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
178+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
179179 . WithManufacturer ( "Valve" )
180180 . WithProduct ( @"^(OpenVR Controller\(Knuckles)" ) ) ;
181181 InputSystem . RegisterLayout < ViveTracker > (
182182 matches : new InputDeviceMatcher ( )
183- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
183+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
184184 . WithManufacturer ( "HTC" )
185185 . WithProduct ( @"^(VIVE Tracker)" ) ) ;
186186 InputSystem . RegisterLayout < HandedViveTracker > (
187187 matches : new InputDeviceMatcher ( )
188- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
188+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
189189 . WithManufacturer ( "HTC" )
190190 . WithProduct ( @"^(OpenVR Controller\(VIVE Tracker)" ) ) ;
191191 InputSystem . RegisterLayout < ViveLighthouse > (
192192 matches : new InputDeviceMatcher ( )
193- . WithInterface ( XRUtilities . kXRInterfaceMatchAnyVersion )
193+ . WithInterface ( XRUtilities . InterfaceMatchAnyVersion )
194194 . WithManufacturer ( "HTC" )
195195 . WithProduct ( @"^(HTC V2-XD/XE)" ) ) ;
196196
0 commit comments