Main > Software Forum
Controlling CPViewer or Johnny5 with JOYCODE Inputs
(1/2) > >>
stoli:
Since the PC that I used to build my MAME cab did not have a PS2 port, I used a GPWiz to interface my CP. No problem with setting up MAME and MAMEWAH as a front end, but now I want to integrate a CP viewer like Johnny5 or CPViewer or CPVW, etc.. 

I can launch them OK from MAMEWAH, but I can't seem to figure out how to get them to close (exit) using a button on my CP ( i.e. JOYCODE_1_BUTTON12). Is it possible, or am I forced to use RBJoy or Joy2Key?

Thanks
Howard_Casto:
At the moment I don't support joysticks.  I have a good reason but you probably don't wnat to hear it.  If so let me know though and I'll ramle on for a page and a half.  :)
stoli:
I'm sure it's a good one. I do some software development myself and appreciate the time and effort it takes to get it right and try to keep all the different platforms out there happy.
mccoy178:
Could this situation be a candidate for Auto Hot Key?  Can AHK use joystick inputs?  If so, it could be a solution for hard coded exit in emulators.
Howard_Casto:
Yes but it'll have the same issue. 


Here's the deal. 

J5 is used three ways:

     Always on (on a second screen). 

     Toggeled between mame (via ahk).

     Called manually and exited when done (like in a fe or something). 


Now for the latter adding joystick support is simple.... just add the old winapi in and you are done. 


For the other two, however, it causes complications.  See via the winapi method, which causes the least overhead, joystick status is always read and acted upon, even if the form doesn't have focus.  Which can cause issues to say the least.  There are ways around it, but j5 is used in so many different ways it is "safer" for me to leave it out.  Directinput is also an option but it chokes when another app has also wrangled the joystick, which would probably be the case as well. 


I'm not saying I won't add it, I'm just not going to add it yet. 

An ahk script would work, but it'd be constantly polling the joystick status and thus would have to be closed when j5 is closed. 



Navigation
Message Index
Next page

Go to full version