Main > Software Forum

CPWizard v2.63 Released

Pages: << < (65/145) > >>

TheShanMan:

Headkaze, for the most part I'm enjoying having CPW run live instead of using bezels, but there's one thing that's kind of annoying.

I have it set up to go straight to the CP on pause, and I have the "Send Pause Key" option checked. As far as I can tell there is NO way to have mame paused without having CPW up. Occasionally I want to pause a game and see what is behind my CP layout. It would be cool if I could configure a different key to dismiss CPW without unpausing, or have another means to accomplish it, such as exiting to the menu, and then from the menu exiting to a still-paused mame.

Any thoughts on how this could be accomplished, assuming you're willing to make such a change? Bezels aren't much better, but at least you can go into the TAB menu and hide the bezel.

headkaze:

TheShanMan: I'll have to get used to your new avatar now :)

The thing is CPW is designed to show when Mame is paused using Mame's output system. It's a reliable way to detect that. If you want to keep pause you would have to turn off the "Use Mame Output" and "Send Pause Key" then CPW detects Mame by searching for it's Window. It will just minimize Mame and show the CP using the "Show Key" set in the input options.

TheShanMan:

Yeah, I like the current behavior but wish there was a way to get CPW to go away without unpausing at times. I normally want it to show when paused and hide when unpaused. But if I could hit some other key, go through some menu, or something to get CPW to exit back to mame without unpausing. I know it can't be done now. I'm more asking if it's something you'd think about adding support for in some fashion - whatever makes the most sense to you. Or are you saying you don't think it's a good idea to try to implement what I'm hoping for?

Yeah, I'm on a cyberball high this week. Just picked it up tonight. I'm quite thrilled! ;D

headkaze:

I get what your saying now, so you want to be able to exit CPW without pausing sometimes. Not sure what you mean when you say "Occasionally I want to pause a game and see what is behind my CP layout".

Off the top of my head I can't think of a nice way to add support for it in CPW. It's a pretty odd request really. I can actually think of a really easy way to add support for it in the Mame patch though.

In src/osd/windows/output.c


--- Code: ---static LRESULT CALLBACK output_window_proc(HWND wnd, UINT message, WPARAM wparam, LPARAM lparam)
{
if (message == im_mame_pause && !(GetAsyncKeyState(VK_ESC) & 0x8000))
mame_pause(Machine, lparam);

--- End code ---

That will mean if you exit CPW and have the escape key held down then Mame won't unpause. You could of course make it any key or key combination by specifying the appropriate virtual keycode(s).

TheShanMan:

I don't think it's that odd but maybe my choice of options isn't the most common. :dunno What I meant by that is sometimes I want to see the paused game (because I need to know what I'm in store for when I unpause), but the CP image obscures quite a bit of the game image. If you don't think there's a reasonable way to add that into CPW I understand.

Your source code change might be a reasonable workaround for me, though IIRC isn't there a bit of a delay between exiting CPW and the time that mame gets unpaused? I wonder if a quick push of ESC would work, or if by the time the message is sent and mame processes it, the key is no longer pressed.

Pages: << < (65/145) > >>

Go to full version