Page 1 of 1

Screen Orientation Flags

Posted: Fri Apr 30, 2021 8:23 pm
by PersistentInsistence
Hi Guys,

Does MAME have flags to indicate which way round the output video is displayed?

This isn't too bad for landscape games, but with portrait games I need to have a value to tell me if it's L>R or R>L.

Failing that, is there a way for all portrait games to be displayed in one direction only, or would they all need to be individually set?

TIA

Re: Screen Orientation Flags

Posted: Sun May 02, 2021 3:46 am
by Tafoid
PersistentInsistence wrote: Fri Apr 30, 2021 8:23 pm Hi Guys,

Does MAME have flags to indicate which way round the output video is displayed?

This isn't too bad for landscape games, but with portrait games I need to have a value to tell me if it's L>R or R>L.

Failing that, is there a way for all portrait games to be displayed in one direction only, or would they all need to be individually set?

TIA

You can determine the original orientation from extracting the information from the -listxml output. In particular, the <display tag= line.
In that line the important setting is rotate= degrees value which MAME has to rotate the image to show it on screen. Most horizontal screens will show 0 and some require 180 (flipped). Vertical screens show either "90" (rotated right) or "270" (rotated left).
You can use the .ini commands rol, ror, autorol, autoror to have the orientation changed.

You should be able to divine enough information from that to do what you want.

Re: Screen Orientation Flags

Posted: Mon May 03, 2021 8:48 am
by PersistentInsistence
Thanks for the reply.

Does the orientation affect the UI as well; if I flip from l>r to r>l will the UI change its orientation as well?

Essentially I need to get MAME to send that data to some external hardware and perform an action depending on the video output orientation. I know it's doable but have no idea where to start software wise.

Re: Screen Orientation Flags

Posted: Mon May 03, 2021 4:46 pm
by Tafoid
PersistentInsistence wrote: Mon May 03, 2021 8:48 am Thanks for the reply.

Does the orientation affect the UI as well; if I flip from l>r to r>l will the UI change its orientation as well?

Essentially I need to get MAME to send that data to some external hardware and perform an action depending on the video output orientation. I know it's doable but have no idea where to start software wise.

No idea. Can't really help there. I can only inform you what you can get from the internal meta data and you'll have to take it from there.
Using -ROR or -ROL at command line, even when launching a game does present the internal UI also in the rotated position.

Example: mappy