Author Topic: Layout for horizontal and vertical rotation  (Read 5266 times)

maziac

  • Newbie
  • *
  • Posts: 3
    • View Profile
Layout for horizontal and vertical rotation
« on: December 11, 2016, 07:16:30 AM »
Hi,

I need advise on a configuration issue.
My setup is that I have a cabinet with a monitor that can be manually rotated into horizontal and vertical position.
Therefore I have 2 layouts layout.nut and layout-vert.nut and I can toggle between those 2.

Now the question is: how do I pass the orientation on to the emulator. I.e. if I setup the emulator I can configure also the command line arguments.
But if I use the same emulator I would once have to pass a rotation argument and not in the other case.
But the emulator has only one argument line and not different ones for each orientation.

As a workaround I have setup 2 emulators, i.e. 'daphne' and 'daphne-vert' just to have two different command line arguments.
But this is very tedious because it also means that I have to use 2 romlists etc.
(I use the same games in both lists, i.e. I'm able to play the same game in either vertical or horizontal direction. This is because I'm too lazy to
change the monitor orientation manually every time if I just want o play a short game...)

Is there a more direct/easy way to handle the orientation? Or pass the orientation from the layout to the emulator somehow?

Cheers

maziac

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Layout for horizontal and vertical rotation
« Reply #1 on: December 17, 2016, 03:53:31 AM »
I have now a running setup which works as this:

A plugin checks the ToGame transition and writes the current orientation into a file.
All emulators that I use are not started directly but through a script.
These scripts check the contents of the file when started and add a parameter to the execution of the
emulator which contains the rotation.

(It works quite well but it would be nice if I could get rid of the file somehow...)

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: Layout for horizontal and vertical rotation
« Reply #2 on: December 17, 2016, 09:23:05 AM »
You could write the attract mode emu config file and change the Params. Does attract mode read this file before rom launching?