Skip to content

Commit 49ea0ff

Browse files
committed
- fixed empty string
- shortened getFieldOrder()
1 parent 41552f5 commit 49ea0ff

16 files changed

+102
-102
lines changed

src/main/kotlin/openvr/lib/ivrApplication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ open class IVRApplications : Structure {
350350

351351
constructor()
352352

353-
override fun getFieldOrder(): List<String> = Arrays.asList("AddApplicationManifest", "RemoveApplicationManifest", "IsApplicationInstalled", "GetApplicationCount",
353+
override fun getFieldOrder() = listOf("AddApplicationManifest", "RemoveApplicationManifest", "IsApplicationInstalled", "GetApplicationCount",
354354
"GetApplicationKeyByIndex", "GetApplicationKeyByProcessId", "LaunchApplication", "LaunchTemplateApplication", "LaunchApplicationFromMimeType",
355355
"LaunchDashboardOverlay", "CancelApplicationLaunch", "IdentifyApplication", "GetApplicationProcessId", "GetApplicationsErrorNameFromEnum",
356356
"GetApplicationPropertyString", "GetApplicationPropertyBool", "GetApplicationPropertyUint64", "SetApplicationAutoLaunch", "GetApplicationAutoLaunch",

src/main/kotlin/openvr/lib/ivrChaperone.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ open class IVRChaperone : Structure {
142142

143143
constructor()
144144

145-
override fun getFieldOrder(): List<String> = Arrays.asList("GetCalibrationState", "GetPlayAreaSize", "GetPlayAreaRect", "ReloadInfo", "SetSceneColor",
145+
override fun getFieldOrder() = listOf("GetCalibrationState", "GetPlayAreaSize", "GetPlayAreaRect", "ReloadInfo", "SetSceneColor",
146146
"GetBoundsColor", "AreBoundsVisible_callback", "ForceBoundsVisible")
147147

148148
constructor(peer: Pointer) : super(peer) {

src/main/kotlin/openvr/lib/ivrChaperoneSetup.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ open class IVRChaperoneSetup : Structure {
227227

228228
constructor()
229229

230-
override fun getFieldOrder(): List<String> = Arrays.asList("CommitWorkingCopy", "RevertWorkingCopy", "GetWorkingPlayAreaSize", "GetWorkingPlayAreaRect",
230+
override fun getFieldOrder() = listOf("CommitWorkingCopy", "RevertWorkingCopy", "GetWorkingPlayAreaSize", "GetWorkingPlayAreaRect",
231231
"GetWorkingCollisionBoundsInfo", "GetLiveCollisionBoundsInfo", "GetWorkingSeatedZeroPoseToRawTrackingPose",
232232
"GetWorkingStandingZeroPoseToRawTrackingPose", "SetWorkingPlayAreaSize", "SetWorkingCollisionBoundsInfo", "SetWorkingSeatedZeroPoseToRawTrackingPose",
233233
"SetWorkingStandingZeroPoseToRawTrackingPose", "ReloadFromDisk", "GetLiveSeatedZeroPoseToRawTrackingPose", "SetWorkingCollisionBoundsTagsInfo",

src/main/kotlin/openvr/lib/ivrCompositor.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ open class Compositor_FrameTiming : Structure {
178178
this.hmdPose = hmdPose
179179
}
180180

181-
override fun getFieldOrder(): List<String> = Arrays.asList("size", "frameIndex", "numFramePresents", "numMisPresented",
181+
override fun getFieldOrder() = listOf("size", "frameIndex", "numFramePresents", "numMisPresented",
182182
"numDroppedFrames", "reprojectionFlags", "systemTimeInSeconds", "preSubmitGpuMs", "postSubmitGpuMs",
183183
"totalRenderGpuMs", "compositorRenderGpuMs", "compositorRenderCpuMs", "compositorIdleCpuMs",
184184
"clientFrameIntervalMs", "presentCallCpuMs", "waitForPresentCpuMs", "submitFrameMs",
@@ -272,7 +272,7 @@ open class Compositor_CumulativeStats : Structure {
272272
this.numReprojectedFramesTimedOut = numReprojectedFramesTimedOut
273273
}
274274

275-
override fun getFieldOrder(): List<String> = Arrays.asList("pid", "numFramePresents", "numDroppedFrames",
275+
override fun getFieldOrder()= listOf("pid", "numFramePresents", "numDroppedFrames",
276276
"numReprojectedFrames", "numFramePresentsOnStartup", "numDroppedFramesOnStartup",
277277
"numReprojectedFramesOnStartup", "numLoading", "numFramePresentsLoading", "numDroppedFramesLoading",
278278
"numReprojectedFramesLoading", "numTimedOut", "numFramePresentsTimedOut", "numDroppedFramesTimedOut",
@@ -794,7 +794,7 @@ open class IVRCompositor : Structure {
794794

795795
constructor()
796796

797-
override fun getFieldOrder(): List<String> = listOf("SetTrackingSpace", "GetTrackingSpace", "WaitGetPoses", "GetLastPoses",
797+
override fun getFieldOrder()= listOf("SetTrackingSpace", "GetTrackingSpace", "WaitGetPoses", "GetLastPoses",
798798
"GetLastPoseForTrackedDeviceIndex", "Submit", "ClearLastSubmittedFrame", "PostPresentHandoff", "GetFrameTiming",
799799
"GetFrameTimings", "GetFrameTimeRemaining", "GetCumulativeStats", "FadeToColor", "GetCurrentFadeColor", "FadeGrid",
800800
"GetCurrentGridAlpha", "SetSkyboxOverride", "ClearSkyboxOverride", "CompositorBringToFront", "CompositorGoToBack",

src/main/kotlin/openvr/lib/ivrDriverManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ open class IVRDriverManager : Structure {
4141

4242
constructor()
4343

44-
override fun getFieldOrder(): List<String> = Arrays.asList("GetDriverCount", "GetDriverName", "GetDriverHandle")
44+
override fun getFieldOrder()= listOf("GetDriverCount", "GetDriverName", "GetDriverHandle")
4545

4646
constructor(peer: Pointer) : super(peer) {
4747
read()

src/main/kotlin/openvr/lib/ivrExtendedDisplay.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ open class IVRExtendedDisplay : Structure {
6060

6161
constructor()
6262

63-
override fun getFieldOrder(): List<String> = Arrays.asList("GetWindowBounds", "GetEyeOutputViewport", "GetDXGIOutputInfo")
63+
override fun getFieldOrder()= listOf("GetWindowBounds", "GetEyeOutputViewport", "GetDXGIOutputInfo")
6464

6565
constructor(peer: Pointer) : super(peer) {
6666
read()

src/main/kotlin/openvr/lib/ivrNotifications.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ open class NotificationBitmap : Structure {
2727
this.bytesPerPixel = bytesPerPixel
2828
}
2929

30-
override fun getFieldOrder(): List<String> = Arrays.asList("imageData", "width", "height", "bytesPerPixel")
30+
override fun getFieldOrder()= listOf("imageData", "width", "height", "bytesPerPixel")
3131

3232
constructor(peer: Pointer) : super(peer) {
3333
read()
@@ -115,7 +115,7 @@ open class IVRNotifications : Structure {
115115

116116
constructor()
117117

118-
override fun getFieldOrder(): List<String> = Arrays.asList("CreateNotification", "RemoveNotification")
118+
override fun getFieldOrder()= listOf("CreateNotification", "RemoveNotification")
119119

120120
constructor(peer: Pointer) : super(peer) {
121121
read()

src/main/kotlin/openvr/lib/ivrOverlay.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ open class VROverlayIntersectionParams : Structure {
150150
this.eOrigin = origin.i
151151
}
152152

153-
override fun getFieldOrder(): List<String> = Arrays.asList("source", "direction", "eOrigin")
153+
override fun getFieldOrder()= listOf("source", "direction", "eOrigin")
154154

155155
constructor(peer: Pointer) : super(peer) {
156156
read()
@@ -180,7 +180,7 @@ open class VROverlayIntersectionResults : Structure {
180180
this.distance = distance
181181
}
182182

183-
override fun getFieldOrder(): List<String> = Arrays.asList("point", "normal", "uv", "distance")
183+
override fun getFieldOrder()= listOf("point", "normal", "uv", "distance")
184184

185185
constructor(peer: Pointer) : super(peer) {
186186
read()
@@ -258,7 +258,7 @@ open class IntersectionMaskRectangle : Structure {
258258
this.height = height
259259
}
260260

261-
override fun getFieldOrder(): List<String> = Arrays.asList("topLeftX", "topLeftY", "width", "height")
261+
override fun getFieldOrder()= listOf("topLeftX", "topLeftY", "width", "height")
262262

263263
constructor(peer: Pointer) : super(peer) {
264264
read()
@@ -285,7 +285,7 @@ open class IntersectionMaskCircle : Structure {
285285
this.radius = radius
286286
}
287287

288-
override fun getFieldOrder(): List<String> = Arrays.asList("centerX", "centerY", "radius")
288+
override fun getFieldOrder()= listOf("centerX", "centerY", "radius")
289289

290290
constructor(peer: Pointer) : super(peer) {
291291
read()
@@ -321,7 +321,7 @@ open class VROverlayIntersectionMaskPrimitive : Structure {
321321
this.primitive = m_Primitive
322322
}
323323

324-
override fun getFieldOrder(): List<String> = Arrays.asList("primitiveType", "primitive")
324+
override fun getFieldOrder()= listOf("primitiveType", "primitive")
325325

326326
constructor(peer: Pointer) : super(peer) {
327327
read()
@@ -1269,7 +1269,7 @@ open class IVROverlay : Structure {
12691269

12701270
constructor()
12711271

1272-
override fun getFieldOrder(): List<String> = Arrays.asList("FindOverlay", "CreateOverlay", "DestroyOverlay",
1272+
override fun getFieldOrder()= listOf("FindOverlay", "CreateOverlay", "DestroyOverlay",
12731273
"SetHighQualityOverlay", "GetHighQualityOverlay", "GetOverlayKey", "GetOverlayName", "SetOverlayName",
12741274
"GetOverlayImageData", "GetOverlayErrorNameFromEnum", "SetOverlayRenderingPid", "GetOverlayRenderingPid", "SetOverlayFlag",
12751275
"GetOverlayFlag", "SetOverlayColor", "GetOverlayColor", "SetOverlayAlpha", "GetOverlayAlpha", "SetOverlayTexelAspect",

src/main/kotlin/openvr/lib/ivrRenderModels.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ open class RenderModel_ComponentState : Structure {
8383
this.properties = properties
8484
}
8585

86-
override fun getFieldOrder(): List<String> = Arrays.asList("trackingToComponentRenderModel", "trackingToComponentLocal", "properties")
86+
override fun getFieldOrder()= listOf("trackingToComponentRenderModel", "trackingToComponentLocal", "properties")
8787

8888
constructor(peer: Pointer) : super(peer) {
8989
read()
@@ -121,7 +121,7 @@ open class RenderModel_Vertex : Structure {
121121
this.textureCoord = textureCoord
122122
}
123123

124-
override fun getFieldOrder(): List<String> = Arrays.asList("position", "normal", "textureCoord")
124+
override fun getFieldOrder()= listOf("position", "normal", "textureCoord")
125125

126126
constructor(peer: Pointer) : super(peer) {
127127
read()
@@ -167,7 +167,7 @@ open class RenderModel_TextureMap : Structure {
167167
this.rubTextureMapData = rubTextureMapData
168168
}
169169

170-
override fun getFieldOrder(): List<String> = Arrays.asList("width", "height", "rubTextureMapData")
170+
override fun getFieldOrder()= listOf("width", "height", "rubTextureMapData")
171171

172172
constructor(peer: Pointer) : super(peer) {
173173
read()
@@ -224,7 +224,7 @@ open class RenderModel : Structure {
224224
this.diffuseTextureId = diffuseTextureId
225225
}
226226

227-
override fun getFieldOrder(): List<String> = Arrays.asList("rVertexData", "vertexCount", "rIndexData",
227+
override fun getFieldOrder()= listOf("rVertexData", "vertexCount", "rIndexData",
228228
"triangleCount", "diffuseTextureId")
229229

230230
constructor(peer: Pointer) : super(peer) {
@@ -257,7 +257,7 @@ open class RenderModel_ControllerMode_State : Structure {
257257
this.bScrollWheelVisible = if (bScrollWheelVisible) 1.b else 0.b
258258
}
259259

260-
override fun getFieldOrder(): List<String> = Arrays.asList("bScrollWheelVisible")
260+
override fun getFieldOrder()= listOf("bScrollWheelVisible")
261261

262262
constructor(peer: Pointer) : super(peer) {
263263
read()
@@ -501,7 +501,7 @@ open class IVRRenderModels : Structure {
501501

502502
constructor()
503503

504-
override fun getFieldOrder(): List<String> = Arrays.asList("LoadRenderModel_Async", "FreeRenderModel", "LoadTexture_Async", "FreeTexture",
504+
override fun getFieldOrder()= listOf("LoadRenderModel_Async", "FreeRenderModel", "LoadTexture_Async", "FreeTexture",
505505
"LoadTextureD3D11_Async", "LoadIntoTextureD3D11_Async", "FreeTextureD3D11", "GetRenderModelName", "GetRenderModelCount", "GetComponentCount",
506506
"GetComponentName", "GetComponentButtonMask", "GetComponentRenderModelName", "GetComponentState", "RenderModelHasComponent",
507507
"GetRenderModelThumbnailURL", "GetRenderModelOriginalPath", "GetRenderModelErrorNameFromEnum")

src/main/kotlin/openvr/lib/ivrResources.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ open class IVRResources : Structure {
3636

3737
constructor()
3838

39-
override fun getFieldOrder(): List<String> = Arrays.asList("LoadSharedResource", "GetResourceFullPath")
39+
override fun getFieldOrder()= listOf("LoadSharedResource", "GetResourceFullPath")
4040

4141
constructor(peer: Pointer) : super(peer) {
4242
read()

0 commit comments

Comments
 (0)