Hi,
I have a need to access the sim resolution in order to normalise the behaviour of my xml inputs across many resolutions. Currently, my interactions are more sensitive at higher resolutions. I’m not referring to gauge resolution, I mean the resolution of the sim window itself.
Is it possible to access this data?
Thanks,
CJ.
Do you have a custom HTML/JS gauge you can use to set an Lvar that your XML can use?
I have WASM gauges. I would be willing to set up a HTML/JS just for this purpose as this is a major issue for me.
Cheers.
I tried my idea and it only gives you the screen size of the gauge and not the sim’s screen size.
Other than that, the only other option is having an in-game panel that would give you the real info, I don’t think there is another way.
parallel42/msfs-toolbar-interop (github.com)
We built this thing so multiple add-ons can use the toolbar at the same time… here’s the idea:
The toolbar HTML page spans the entire screen. It has the window.innerWidth
value you’re looking for.
- Have an in-game panel so you can inject code in the toolbar
- Hide the button for that in-game panel so it becomes invisible to users
- Use the code you injected in the toolbar to set an LVar with the width of the screen.
1 Like
Hmmn, I’m really surprised no one else has needed this before, I am doing some new/funky things wrt input.
That sounds like a reasonable workaround, really appreciate it. Another option might be some kind of calibration within my tablet which would be pretty trivial to set up but annoying for the user.
1 Like