mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 20:36:04 +00:00
feat: SteamVR controller types, phone controls on glasses, flat games as VR panels (#1268)
This commit is contained in:
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 })
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user