feat: SteamVR controller types, phone controls on glasses, flat games as VR panels (#1268)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-10-21 21:22:21 +00:00
1 parent 2111197bea
commit e5b54f6248
54 files changed
+908 -86

No files matched your search

@@ -0,0 +1,13 @@
package com.droiddeck.launcher.input
import org.junit.Assert.assertEquals
import org.junit.Test
class VrControllersTest {
@Test fun encodesTheKeysTheSteamVrDriverReads() {
assertEquals("emulate=index\nsticks=game\n", VrControllers.encode(VrControllers.Settings()))
assertEquals("emulate=touch\nsticks=hands\n",
VrControllers.encode(VrControllers.Settings(VrControllers.Emulate.TOUCH, sticksMoveHands = true)))
assertEquals(listOf("off", "index", "touch", "vive"), VrControllers.Emulate.entries.map { it.key })
}
}