Author Topic: Missing focus on mGalaxy at startup  (Read 11011 times)

mario.NET

  • Newbie
  • *
  • Posts: 4
Re: Missing focus on mGalaxy at startup
« Reply #6 on: February 26, 2012, 05:12:03 AM »
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

mario.NET

  • Newbie
  • *
  • Posts: 4
Re: Missing focus on mGalaxy at startup
« Reply #5 on: February 24, 2012, 04:23:21 PM »
Quote
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...

Quote
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

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1186
    • Email
Re: Missing focus on mGalaxy at startup
« Reply #4 on: February 24, 2012, 03:09:10 PM »
Quote
It works! Thank you for the really fast fix
You're welcome..glad to help you!

Quote
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!

Quote
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 Edit: February 24, 2012, 03:13:42 PM by mgalaxy »

mario.NET

  • Newbie
  • *
  • Posts: 4
Re: Missing focus on mGalaxy at startup
« Reply #3 on: February 24, 2012, 11:50:43 AM »
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

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1186
    • Email
Re: Missing focus on mGalaxy at startup
« Reply #2 on: February 23, 2012, 05:37:58 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
  • *
  • Posts: 4
Missing focus on mGalaxy at startup
« Reply #1 on: February 23, 2012, 04:29:01 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