Page 1 of 1
Menu rotation based on video output used?
Posted: Mon Jul 15, 2024 9:59 pm
by therourke
Is it possible to set main menu rotation depending on whether output is analog or direct video? So I don't need to change between .ini each time I want to change?
This way I can have both my CRTs connected - one vertical (on direct video out), one normal (on my analog out) and the menu would be the right orientation on both, without changing configs.
Re: Menu rotation based on video output used?
Posted: Tue Jul 16, 2024 1:06 am
by dickhardpill
I don't think you can rotate per output. It believe it will rotate all devices.
Re: Menu rotation based on video output used?
Posted: Tue Jul 16, 2024 10:14 am
by FPGA64
you dont need to change an ini. just use alternative inis
https://mister-devel.github.io/MkDocs_M ... anced/ini/
Re: Menu rotation based on video output used?
Posted: Tue Jul 16, 2024 2:04 pm
by therourke
I know about alternate .inis, but I wanted to avoid this.
With each screen having its own menu with correct orientation, I don't need to change .inis before I load a rotated game.
Re: Menu rotation based on video output used?
Posted: Wed Jul 17, 2024 2:10 pm
by MikeAndreas1
therourke wrote: ↑Mon Jul 15, 2024 9:59 pm
Is it possible to set main menu rotation depending on whether output is analog or direct video? So I don't need to change between .ini each time I want to change?
This way I can have both my CRTs connected - one vertical (on direct video out), one normal (on my analog out) and the menu would be the right orientation on both, without changing configs.
How can I create a script to automatically detect whether the output is analog or direct video and adjust the main menu rotation accordingly?
Re: Menu rotation based on video output used?
Posted: Wed Jul 17, 2024 8:48 pm
by Flandango
MikeAndreas1 wrote: ↑Wed Jul 17, 2024 2:10 pm
How can I create a script to automatically detect whether the output is analog or direct video and adjust the main menu rotation accordingly?
You can't really. Outside of modifying Mister's Main to possibly detect if an HDMI connection is present and then maybe selecting a particular INI, which isn't something feasible, there is also no way (at least not reliably), to determine if you have an Analog device attached.
Your best solution is to have two INI's, and just use the hotkey sequence during power-up to select between them.
You can't have independent OSD orientation for each output because it's the same video (pre-scalers and what not) before it's split to go out via the two output paths.
If you want the "in-game/core" OSD rotated per-game, that can be done by simply adding the osd_rotate=X option in the INI under that core's section.
For example, here is the OSD for the C128 core rotated:
Re: Menu rotation based on video output used?
Posted: Thu Jul 18, 2024 8:08 am
by LamerDeluxe
I mentioned this idea somewhere before, but I would love an output display rotation setting (0, -90, +90) in mister.ini, which would correctly rotate and flip each vertical core accordingly. This would mean I could easily switch between my rotatable iPad display and OLED TV (which displays vertical cores in landscape orientation), without having to change the orientation of each game every time.
When using alternative ini files, you can already set the menu orientation, as well as the default scanline and shadow mask orientations for regular and vertical cores. This does mean having to use three of the four available ini files for the three orientations plus one for a non-rotating display.