Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Get Mala to Rotate on Game Selction and Start, va after games completes  (Read 4029 times)

0 Members and 1 Guest are viewing this topic.

weisshaupt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 128
  • Last login:April 12, 2024, 05:54:45 pm
    • The Ghost in the Machine Project Thread
Is there a way to configure MALA so it will send a Orientation Event as it launches a game, rather than after the fact?
I am trying to wtie a plugin that will allow control of a motor for rotating the monitor to match a games aspect, but Mala seems to catch up to Mame, rather than turn itself and then launch MAME.. ?

I can get around it, its just seems somewhat bacl-a$$wards to me and I was wondiner if I just don't know how to configure it right..

Thanks!



“A government ... cannot have the right of altering itself. If it had, it would be arbitrary. It might make itself what it pleased; and wherever such a right is set up, it shews there is no constitution” - Thomas Paine, Rights of Man

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Is there a way to configure MALA so it will send a Orientation Event as it launches a game, rather than after the fact?
I am trying to wtie a plugin that will allow control of a motor for rotating the monitor to match a games aspect, but Mala seems to catch up to Mame, rather than turn itself and then launch MAME.. ?

I can get around it, its just seems somewhat bacl-a$$wards to me and I was wondiner if I just don't know how to configure it right..

Thanks!





I would use the 'game selected data' which should have the games orientation in it.

Then only act on it when launching a game

weisshaupt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 128
  • Last login:April 12, 2024, 05:54:45 pm
    • The Ghost in the Machine Project Thread
Hi Loadman, thanks for the response.

Yeah, I was planning to to it that way i( I already went ahead and coded it) if there wasn't something simpler I was missing.  It just seemed counter intutive to tell me that the orientation had changed AFTER MAME has already gone and changed it..

I hear you are writing a plugin for DaOldMan to move Mala to the "right" orientation on startup?...
What are you using to code? I am a newbie to Visual C++, so most of what I have coded so far is brute force crap (for instance, I can't seem to reference the * int orientation as an integer variable directly without causing Mala to crash - so I had to copy it into a string and pull it out with atoi()...if I have to look at another class defintion I will just shoot myself ) ,  but if I can get the right sytax for the call to mala for setting orientation, I could integrate that functionality into my plug in..

 or not..







“A government ... cannot have the right of altering itself. If it had, it would be arbitrary. It might make itself what it pleased; and wherever such a right is set up, it shews there is no constitution” - Thomas Paine, Rights of Man

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
just seemed counter intutive to tell me that the orientation had changed AFTER MAME has already gone and changed it..

 ??? Ahh Sorry for being dumb, but what do you mean Mame had chnaged 'it'
Do you mean Mame had rotated itself for it's game OR mame had rotated MaLa?

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5158
  • Last login:May 24, 2025, 09:57:44 pm
  • Wheres my coffee?
    • Skenny's Outpost
Hey Weisshaupt:

Koz319 created a mala plugin to rotate the monitor and turn Mala when the screen is rotated, based on the game selected. I tried it and it works good. You have to set up mala to rotate with mame, I cant remember exactly.
But I can look it up.
He said he was going to post the code, but I dont think he did, or at least i cant find it.
Check out this thread.

weisshaupt

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 128
  • Last login:April 12, 2024, 05:54:45 pm
    • The Ghost in the Machine Project Thread


 ??? Ahh Sorry for being dumb, but what do you mean Mame had chnaged 'it'
Do you mean Mame had rotated itself for it's game OR mame had rotated MaLa?

Mame of course just rotates the game itself, but its at that point you need to know that the monitor needs to be rotated, rather than when the game exits and Mala rotates the menu. Keying off the Horizontal and vertical descriptions tags works fine. I was just hoping there was a way to get Mala to do that for me.. I have actually written the plugin so you can have motor stops at 0, 90, 180  and 270. Most folks will either move from 180 to 90 or from 0 to 90 and back,  but if Mala tells me which way to go, I don't have to add a config item for that . Alas, not I have to tell my program that Horizontal really means 0 or 180 degree, and that vertical really means 90 and not 270.. .

“A government ... cannot have the right of altering itself. If it had, it would be arbitrary. It might make itself what it pleased; and wherever such a right is set up, it shews there is no constitution” - Thomas Paine, Rights of Man

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
Yeah I see what you mean.

MaLa did not have automatic monitor rotation in mind with that option.

But as you can see that is why Plug-ins was catered for so you can make a set-up custom to your Cab  ;D

loadman

  • Moderator
  • Trade Count: (+3)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4306
  • Last login:May 26, 2024, 05:14:32 am
  • Cocktail Cab owner and MaLa FE developer
    • MaLa
) ,  but if I can get the right sytax for the call to mala for setting orientation, I could integrate that functionality into my plug in..

You should be able to use windows messages to do that