Skip to content

Commit 457f93a

Browse files
committed
⬆️
- Steam VR 10.0.12 - Kotlin 1.2.20 eap 71 - gradle 4.4.1 - shadow 2.0.2 - glm
1 parent a9e7ae1 commit 457f93a

File tree

19 files changed

+316
-155
lines changed

19 files changed

+316
-155
lines changed

build.gradle

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ group = 'com.github.kotlin-graphics'
77

88
buildscript {
99

10-
ext.kotlinVersion = '1.2.0'
10+
ext.kotlinVersion = '1.2.20-eap-71'
1111

1212
repositories {
1313
jcenter() // shadow
@@ -18,7 +18,7 @@ buildscript {
1818

1919
dependencies {
2020
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
21-
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
21+
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
2222
}
2323
}
2424

@@ -30,7 +30,7 @@ dependencies {
3030

3131
testCompile 'io.kotlintest:kotlintest:2.0.7'
3232

33-
compile "com.github.kotlin-graphics:glm:70b4eb23b05153de66137bb3dba0446eb77654f0"
33+
compile "com.github.kotlin-graphics:glm:513efb138ce49ef1a6b0a87810c47c7548e7d1f6"
3434

3535
compile "net.java.dev.jna:jna:4.5.0"
3636
}
@@ -42,15 +42,17 @@ repositories {
4242
maven { url 'https://jitpack.io' }
4343
}
4444

45-
task packageSources(type: Jar, dependsOn: 'classes') {
46-
from sourceSets.main.allSource
45+
task sourcesJar(type: Jar, dependsOn: classes) {
4746
classifier = 'sources'
47+
from sourceSets.main.allSource
4848
}
4949

50-
//jar {
51-
// /** This line of code recursively collects and copies all of a project's files and adds them to the JAR itself.
52-
// One can extend this task, to skip certain files or particular types at will */
53-
// from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
54-
//}
50+
task javadocJar(type: Jar, dependsOn: javadoc) {
51+
classifier = 'javadoc'
52+
from javadoc.destinationDir
53+
}
5554

56-
artifacts { archives packageSources }
55+
artifacts {
56+
archives sourcesJar
57+
archives javadocJar
58+
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-all.zip

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,15 @@ open class IVRCompositor : Structure {
257257
/** Interface for accessing last set of poses returned by WaitGetPoses one at a time.
258258
* Returns VRCompositorError_IndexOutOfRange if unDeviceIndex not less than openvr.lib.getK_unMaxTrackedDeviceCount otherwise VRCompositorError_None.
259259
* It is okay to pass NULL for either pose if you only want one of the values. */
260-
fun getLastPoseForTrackedDeviceIndex(unDeviceIndex: TrackedDeviceIndex_t, pOutputPose: TrackedDevicePose.ByReference,
260+
fun getLastPoseForTrackedDeviceIndex(unDeviceIndex: TrackedDeviceIndex, pOutputPose: TrackedDevicePose.ByReference,
261261
pOutputGamePose: TrackedDevicePose.ByReference)
262262
= EVRCompositorError.of(GetLastPoseForTrackedDeviceIndex!!.invoke(unDeviceIndex, pOutputPose, pOutputGamePose))
263263

264264
@JvmField
265265
var GetLastPoseForTrackedDeviceIndex: GetLastPoseForTrackedDeviceIndex_callback? = null
266266

267267
interface GetLastPoseForTrackedDeviceIndex_callback : Callback {
268-
fun invoke(unDeviceIndex: TrackedDeviceIndex_t, pOutputPose: TrackedDevicePose.ByReference, pOutputGamePose: TrackedDevicePose.ByReference): Int
268+
fun invoke(unDeviceIndex: TrackedDeviceIndex, pOutputPose: TrackedDevicePose.ByReference, pOutputGamePose: TrackedDevicePose.ByReference): Int
269269
}
270270

271271
/** Updated scene texture to display. If pBounds is NULL the entire texture will be used. If called from an OpenGL app, consider adding a glFlush after

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

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -745,15 +745,15 @@ open class IVROverlay : Structure {
745745
}
746746

747747
/** Sets the transform to relative to the transform of the specified tracked device. */
748-
fun setOverlayTransformTrackedDeviceRelative(ulOverlayHandle: VROverlayHandle, unTrackedDevice: TrackedDeviceIndex_t,
748+
fun setOverlayTransformTrackedDeviceRelative(ulOverlayHandle: VROverlayHandle, unTrackedDevice: TrackedDeviceIndex,
749749
pmatTrackedDeviceToOverlayTransform: HmdMat34.ByReference)
750750
= EVROverlayError.of(SetOverlayTransformTrackedDeviceRelative!!.invoke(ulOverlayHandle, unTrackedDevice, pmatTrackedDeviceToOverlayTransform))
751751

752752
@JvmField
753753
var SetOverlayTransformTrackedDeviceRelative: SetOverlayTransformTrackedDeviceRelative_callback? = null
754754

755755
interface SetOverlayTransformTrackedDeviceRelative_callback : Callback {
756-
fun invoke(ulOverlayHandle: VROverlayHandle, unTrackedDevice: TrackedDeviceIndex_t, pmatTrackedDeviceToOverlayTransform: HmdMat34.ByReference): Int
756+
fun invoke(ulOverlayHandle: VROverlayHandle, unTrackedDevice: TrackedDeviceIndex, pmatTrackedDeviceToOverlayTransform: HmdMat34.ByReference): Int
757757
}
758758

759759
/** Gets the transform if it is relative to a tracked device. Returns an error if the transform is some other value. */
@@ -771,14 +771,14 @@ open class IVROverlay : Structure {
771771

772772
/** Sets the transform to draw the overlay on a rendermodel component mesh instead of a quad. This will only draw when the system is drawing the device.
773773
* Overlays with this transform value cannot receive mouse events. */
774-
fun setOverlayTransformTrackedDeviceComponent(ulOverlayHandle: VROverlayHandle, unDeviceIndex: TrackedDeviceIndex_t, pchComponentName: String)
774+
fun setOverlayTransformTrackedDeviceComponent(ulOverlayHandle: VROverlayHandle, unDeviceIndex: TrackedDeviceIndex, pchComponentName: String)
775775
= EVROverlayError.of(SetOverlayTransformTrackedDeviceComponent!!.invoke(ulOverlayHandle, unDeviceIndex, pchComponentName))
776776

777777
@JvmField
778778
var SetOverlayTransformTrackedDeviceComponent: SetOverlayTransformTrackedDeviceComponent_callback? = null
779779

780780
interface SetOverlayTransformTrackedDeviceComponent_callback : Callback {
781-
fun invoke(ulOverlayHandle: VROverlayHandle, unDeviceIndex: TrackedDeviceIndex_t, pchComponentName: String): Int
781+
fun invoke(ulOverlayHandle: VROverlayHandle, unDeviceIndex: TrackedDeviceIndex, pchComponentName: String): Int
782782
}
783783

784784
/** Gets the transform information when the overlay is rendering on a component. */
@@ -941,21 +941,6 @@ open class IVROverlay : Structure {
941941
: Boolean
942942
}
943943

944-
/** Processes mouse input from the specified controller as though it were a mouse pointed at a compositor overlay with the specified settings.
945-
* The controller is treated like a laser pointer on the -z axis. The point where the laser pointer would intersect with the overlay is the mouse position,
946-
* the trigger is left mouse, and the track pad is right mouse.
947-
*
948-
* Return true if the controller is pointed at the overlay and an event was generated. */
949-
fun handleControllerOverlayInteractionAsMouse(ulOverlayHandle: VROverlayHandle, unControllerDeviceIndex: TrackedDeviceIndex_t)
950-
= HandleControllerOverlayInteractionAsMouse!!.invoke(ulOverlayHandle, unControllerDeviceIndex)
951-
952-
@JvmField
953-
var HandleControllerOverlayInteractionAsMouse: HandleControllerOverlayInteractionAsMouse_callback? = null
954-
955-
interface HandleControllerOverlayInteractionAsMouse_callback : Callback {
956-
fun invoke(ulOverlayHandle: VROverlayHandle, unControllerDeviceIndex: TrackedDeviceIndex_t): Boolean
957-
}
958-
959944
/** Returns true if the specified overlay is the hover target. An overlay is the hover target when it is the last overlay "moused over" by the virtual mouse
960945
* pointer */
961946
fun isHoverTargetOverlay(ulOverlayHandle: VROverlayHandle) = IsHoverTargetOverlay!!.invoke(ulOverlayHandle)
@@ -1208,7 +1193,7 @@ open class IVROverlay : Structure {
12081193
var GetPrimaryDashboardDevice: GetPrimaryDashboardDevice_callback? = null
12091194

12101195
interface GetPrimaryDashboardDevice_callback : Callback {
1211-
fun invoke(): TrackedDeviceIndex_t
1196+
fun invoke(): TrackedDeviceIndex
12121197
}
12131198

12141199
// ---------------------------------------------
@@ -1360,14 +1345,14 @@ open class IVROverlay : Structure {
13601345
"GetOverlayTransformOverlayRelative", "SetOverlayTransformOverlayRelative", "ShowOverlay", "HideOverlay",
13611346
"IsOverlayVisible", "GetTransformForOverlayCoordinates", "PollNextOverlayEvent", "GetOverlayInputMethod",
13621347
"SetOverlayInputMethod", "GetOverlayMouseScale", "SetOverlayMouseScale", "ComputeOverlayIntersection",
1363-
"HandleControllerOverlayInteractionAsMouse", "IsHoverTargetOverlay", "GetGamepadFocusOverlay", "SetGamepadFocusOverlay",
1364-
"SetOverlayNeighbor", "MoveGamepadFocusToNeighbor", "SetOverlayDualAnalogTransform", "GetOverlayDualAnalogTransform",
1365-
"SetOverlayTexture", "ClearOverlayTexture", "SetOverlayRaw", "SetOverlayFromFile", "GetOverlayTexture",
1366-
"ReleaseNativeOverlayHandle", "GetOverlayTextureSize", "CreateDashboardOverlay", "IsDashboardVisible",
1367-
"IsActiveDashboardOverlay", "SetDashboardOverlaySceneProcess", "GetDashboardOverlaySceneProcess", "ShowDashboard",
1368-
"GetPrimaryDashboardDevice", "ShowKeyboard", "ShowKeyboardForOverlay", "GetKeyboardText", "HideKeyboard",
1369-
"SetKeyboardTransformAbsolute", "SetKeyboardPositionForOverlay", "SetOverlayIntersectionMask", "GetOverlayFlags",
1370-
"ShowMessageOverlay", "CloseMessageOverlay")
1348+
"IsHoverTargetOverlay", "GetGamepadFocusOverlay", "SetGamepadFocusOverlay", "SetOverlayNeighbor",
1349+
"MoveGamepadFocusToNeighbor", "SetOverlayDualAnalogTransform", "GetOverlayDualAnalogTransform", "SetOverlayTexture",
1350+
"ClearOverlayTexture", "SetOverlayRaw", "SetOverlayFromFile", "GetOverlayTexture", "ReleaseNativeOverlayHandle",
1351+
"GetOverlayTextureSize", "CreateDashboardOverlay", "IsDashboardVisible", "IsActiveDashboardOverlay",
1352+
"SetDashboardOverlaySceneProcess", "GetDashboardOverlaySceneProcess", "ShowDashboard", "GetPrimaryDashboardDevice",
1353+
"ShowKeyboard", "ShowKeyboardForOverlay", "GetKeyboardText", "HideKeyboard", "SetKeyboardTransformAbsolute",
1354+
"SetKeyboardPositionForOverlay", "SetOverlayIntersectionMask", "GetOverlayFlags", "ShowMessageOverlay",
1355+
"CloseMessageOverlay")
13711356

13721357
constructor(peer: Pointer) : super(peer) {
13731358
read()
@@ -1377,4 +1362,4 @@ open class IVROverlay : Structure {
13771362
class ByValue : IVROverlay(), Structure.ByValue
13781363
}
13791364

1380-
val IVROverlay_Version = "IVROverlay_017"
1365+
val IVROverlay_Version = "IVROverlay_018"

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,17 @@ val SteamVR_RetailDemo_Bool = "retailDemo"
198198
val SteamVR_IpdOffset_Float = "ipdOffset"
199199
val SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering"
200200
val SteamVR_EnableLinuxVulkanAsync_Bool = "enableLinuxVulkanAsync"
201+
val SteamVR_AllowDisplayLockedMode_Bool = "allowDisplayLockedMode"
201202
val SteamVR_HaveStartedTutorialForNativeChaperoneDriver_Bool = "haveStartedTutorialForNativeChaperoneDriver"
203+
val SteamVR_ForceWindows32bitVRMonitor = "forceWindows32BitVRMonitor"
202204

203205

204206
//-----------------------------------------------------------------------------
205207
// lighthouse keys
206208

207209
val Lighthouse_Section = "driver_lighthouse"
208210
val Lighthouse_DisableIMU_Bool = "disableimu"
211+
val DisableIMUExceptHMD_Bool = "disableimuexcepthmd"
209212
val Lighthouse_UseDisambiguation_String = "usedisambiguation"
210213
val Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug"
211214
val Lighthouse_PrimaryBasestation_Int32 = "primarybasestation"

0 commit comments

Comments
 (0)