Page 1 of 1

Missing focus on mGalaxy at startup

Posted: Thu Feb 23, 2012 10:29 pm
by mario.NET
Hi all, don't know if this is really a bug, but...

I'm trying to use mGalaxy on my cabinet (with arcadevga and jpac)
I installed windows XP, mame, and of course mGalaxy
At boot, when mGalaxy appears, it doesn't have focus, so no input is sent to the application
If I click on the mouse, then it works

Note that:
- I tried both v2 and v2.1
- I tried launching from startup folder and regedit (winlogon key)
- There are no other programs starting at boot
- If I put notepad in winlogon key, when it comes up it has focus

Anyone having this problem?
Could it be a mGalaxy bug?

Bye
Mario

PS: Any chance to open source the project? I'll be glad to help

Re: Missing focus on mGalaxy at startup

Posted: Thu Feb 23, 2012 11:37 pm
by mgalaxy
mario,
Could you try with that version (replace files in your folder with it)
http://www.mgalaxy.com/other/mario.zip

Re: Missing focus on mGalaxy at startup

Posted: Fri Feb 24, 2012 5:50 pm
by mario.NET
It works! Thank you for the really fast fix

Now there is only one issue left for us cabinet users...

Jpac uses P1 button as 'shift' function
If you keep pressed P1, then you press P2, jpac send a 'Esc' key to the pc
Unfortunately, when I press (and keep pressed) P1 I hear 'launching game', and the game starts
I think the application is using the keydown event, but should use keyup (discarding it if another kay was pressed in between events)

This is how it works now:
P1 keydown: game launches
P2 keydown: exit dialog appears (or game appears, if you're not fast enough!)
P2 keyup: -
P1 keyup: -

How I think it should work:
P1 keydown: -
P2 keydown: -
P2 keyup: exit dialog shows
P1 keyup: discarded (there was another keyup in between)

That would make mGalaxy perfect for cabinets!

Finally, a request for a new feature :-)

I keep my roms organized in subfolders, ie:
roms/Old Classics (80s)
roms/Recent (90s)
roms/Racing Games
roms/Horizontal shoot'em ups
but mGalaxy reads available roms in roms/ only

Ideally, I'd like to have a two level menĂ¹ built on that directory structure
Using previous example, four lists with a 'category name' on top, using Tilde and P keys to switch list

If source code was available, I'd try to do it myself (I know this request is tailored to my needs)
If that's not possible, may I ask you to at least recurse subdirectories of roms/ when you search for available files?

Thank you again, and sorry for the long post
Keep the good work, I like mGalaxy a lot

Bye
Mario

Re: Missing focus on mGalaxy at startup

Posted: Fri Feb 24, 2012 9:09 pm
by mgalaxy
It works! Thank you for the really fast fix
You're welcome..glad to help you!
Jpac uses P1 button as 'shift' function
I myself use an I-Pac (and have quite a lot of mGalaxy users using it too) and it's working perfectly.
If one press on P1 key, the game WON'T launch until the key is unpressed! (this is the exact opposite of the behavior that you describe).
(By the way all of this "SHIFT" behavior is managed by the IPac/Jpac...not mGalaxy!
Wouldn't it be a problem with your Jpac?! I can affirm you that everything is working as it should be..and as you describe it!
Ideally, I'd like to have a two level menu built on that directory structure
I've implemented recursive file list for the ROMS and MUSICS folder.
It will browse all directories inside those folders (not only the second level)...is that OK for you?

Re: Missing focus on mGalaxy at startup

Posted: Fri Feb 24, 2012 10:23 pm
by mario.NET
I myself use an I-Pac (and have quite a lot of mGalaxy users using it too) and it's working perfectly.
If one press on P1 key, the game WON'T launch until the key is unpressed! (this is the exact opposite of the behavior that you describe).
(By the way all of this "SHIFT" behavior is managed by the IPac/Jpac...not mGalaxy!
Wouldn't it be a problem with your Jpac?! I can affirm you that everything is working as it should be..and as you describe it!
mmm, guess I should double-check my jpac card, then...
I've implemented recursive file list for the ROMS and MUSICS folder.
It will browse all directories inside those folders (not only the second level)...is that OK for you?
Perfect!

Thanks
Mario

Re: Missing focus on mGalaxy at startup

Posted: Sun Feb 26, 2012 11:12 am
by mario.NET
A quick update on the keypress problem
Thanks to jpac test program from ultimarc, I found out I had a flacky '1P Start' button

I'd like to report a small annoyance:
If I start mGalaxy from winlogon registry key, games don't run
But if I start it from windows startup folder, all works well
(Note: I'm usign the test version posted in this thread)

Looking forward for next version
Bye
Mario