Determining whether VR Active from a Toolbar Panel

Is there a property you can query from a toolbar panel/app that tells you
whether the simulator is running in VR? thanks /DB

window.globalVars.vrMode

great, many thanks

Any ideas for an alterative method as Asobo broke this method in the last SU?

thanks

The toolbar has the correct value for that global var but if you’re confined to the in-game panel, I don’t think there is a way around it.

I’ve used it years ago, not sure it still works

(E:IS IN VR, bool)

Confirmed still working.

Thank you for this. It fixes everything!

thanks; excuse my naivity how can I use that in javascript?.

presumable a simvar?

SimVar.GetSimVarValue(“E:IS IN VR”, “boolean”)

ignore that question, Brilliant thanks, that will fix a major issue

image