Missing focus on mGalaxy at startup

To get bugs fixed, please report them here.
Post Reply
mario.NET
Newbie
Newbie
Posts: 4
Joined: Thu Feb 23, 2012 10:14 pm

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
User avatar
mgalaxy
Administrator
Administrator
Posts: 1192
Joined: Tue Dec 05, 2006 7:46 pm

mario,
Could you try with that version (replace files in your folder with it)
http://www.mgalaxy.com/other/mario.zip
mario.NET
Newbie
Newbie
Posts: 4
Joined: Thu Feb 23, 2012 10:14 pm

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
User avatar
mgalaxy
Administrator
Administrator
Posts: 1192
Joined: Tue Dec 05, 2006 7:46 pm

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?
Last edited by mgalaxy on Fri Feb 24, 2012 9:13 pm, edited 1 time in total.
mario.NET
Newbie
Newbie
Posts: 4
Joined: Thu Feb 23, 2012 10:14 pm

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
mario.NET
Newbie
Newbie
Posts: 4
Joined: Thu Feb 23, 2012 10:14 pm

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
Post Reply