@echo off
rem Flight Simulator Device: start a triple monitor session with one double click.
rem Put this on the desktop. Edit the settings below once.

rem Which sim: msfs2024, xplane12, or dcs
set SIM=msfs2024

rem Head tracker software. TrackIR is the default; for opentrack use its opentrack.exe path instead. Leave blank for none.
set TRACKER=C:\Program Files (x86)\NaturalPoint\TrackIR5\TrackIR5.exe

if not "%TRACKER%"=="" (
    if exist "%TRACKER%" (
        echo Starting head tracking...
        start "" "%TRACKER%"
        timeout /t 4 /nobreak >nul
    ) else (
        echo Head tracker not found at %TRACKER%, edit TRACKER in this file.
    )
)

if /i "%SIM%"=="msfs2024" start "" "steam://rungameid/2537590"
if /i "%SIM%"=="xplane12" start "" "steam://rungameid/2014780"
if /i "%SIM%"=="dcs" start "" "steam://rungameid/223750"
