Menu rotation based on video output used?

Discussion about displays and related hardware including MiSTer filters and video settings.
therourke
Posts: 24
Joined: Mon May 17, 2021 9:09 pm
Location: London
Has thanked: 1 time
Been thanked: 1 time
Contact:

Menu rotation based on video output used?

Unread post 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.

User avatar
dickhardpill
Posts: 293
Joined: Tue Apr 09, 2024 9:28 pm
Location: Not Portland, OR
Has thanked: 74 times
Been thanked: 60 times
Contact:

Re: Menu rotation based on video output used?

Unread post by dickhardpill »

I don't think you can rotate per output. It believe it will rotate all devices.

FPGA64
Top Contributor
Posts: 940
Joined: Mon Mar 01, 2021 3:10 pm
Has thanked: 49 times
Been thanked: 375 times

Re: Menu rotation based on video output used?

Unread post by FPGA64 »

you dont need to change an ini. just use alternative inis

https://mister-devel.github.io/MkDocs_M ... anced/ini/

therourke
Posts: 24
Joined: Mon May 17, 2021 9:09 pm
Location: London
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Menu rotation based on video output used?

Unread post by therourke »

FPGA64 wrote: Tue Jul 16, 2024 10:14 am

you dont need to change an ini. just use alternative inis

https://mister-devel.github.io/MkDocs_M ... anced/ini/

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.

MikeAndreas1
Posts: 1
Joined: Wed Jul 17, 2024 2:07 pm

Re: Menu rotation based on video output used?

Unread post 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?

Flandango
Core Developer
Posts: 459
Joined: Wed May 26, 2021 9:35 pm
Has thanked: 59 times
Been thanked: 383 times

Re: Menu rotation based on video output used?

Unread post 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:

Code: Select all

[c128]
osd_rotate=1
User avatar
LamerDeluxe
Top Contributor
Posts: 1239
Joined: Sun May 24, 2020 10:25 pm
Has thanked: 887 times
Been thanked: 284 times

Re: Menu rotation based on video output used?

Unread post 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.

Post Reply