Add Windows PS Move input backend

This commit is contained in:
Meta Vens 2026-06-14 20:14:55 +01:00
commit 352b64de5b
4 changed files with 194 additions and 4 deletions

View file

@ -1,6 +1,8 @@
param(
[string] $MuninnExe = "C:\Meta\Odin\Muninn\muninn.exe",
[string] $StorePath = "C:\Meta\Odin\state\starfire.muninn.telemetry.cc"
[string] $StorePath = "C:\Meta\Odin\state\starfire.muninn.telemetry.cc",
[string[]] $MoveState = @(),
[int] $IntervalSeconds = 15
)
$ErrorActionPreference = "Stop"
@ -21,7 +23,14 @@ if ($null -eq $process) {
throw "Starfire Muninn serve process is not running with Quest access enabled"
}
& $MuninnExe --health --store $StorePath
$healthArgs = @("--health", "--store", $StorePath, "--host", "starfire", "--interval-seconds", "$IntervalSeconds")
foreach ($source in $MoveState) {
if (-not [string]::IsNullOrWhiteSpace($source)) {
$healthArgs += @("--move-state", $source)
}
}
& $MuninnExe @healthArgs
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}

View file

@ -2,7 +2,9 @@ param(
[string] $MuninnExe = "C:\Meta\Odin\Muninn\muninn.exe",
[string] $StorePath = "C:\Meta\Odin\state\starfire.muninn.telemetry.cc",
[string] $LogRoot = "C:\Meta\Odin\logs\starfire-muninn",
[string] $QuestSerial = "1WMHHB68PG1515"
[string] $QuestSerial = "1WMHHB68PG1515",
[string[]] $MoveState = @(),
[switch] $EnableUsbMoveState
)
$ErrorActionPreference = "Stop"
@ -36,6 +38,14 @@ $arguments = @(
"--quest-adb",
"--quest-serial", $QuestSerial
)
foreach ($source in $MoveState) {
if (-not [string]::IsNullOrWhiteSpace($source)) {
$arguments += @("--move-state", $source)
}
}
if ($EnableUsbMoveState) {
$arguments += @("--move-state", "move-starfire-usb=windows-psmove")
}
$process = Start-Process `
-FilePath $MuninnExe `