Build Your Own Arcade Controls Forum
Main => Main Forum => Topic started by: Hewskie on July 06, 2009, 05:14:30 pm
-
Hello,
I'm in the process of designing my touchscreen Juke/ Touchmaster player while I wait for all the parts to arrive in the mail and I've run into a problem. After launching a Mame game from xlobby, I need to hit esc to return to the front end. Does anyone know a simple way close mame without adding a pushbutton to the machine?
I remember reading about a mouse macro that could generate a keypress by moving the mouse in a prerecorded pattern, but I can't find anything on the subject at the moment.
Any Ideas would be greatly appreciated.
(PS - I will probably be posting a thread in the Project Announcements very soon so look out!)
(edit: changed subject title)
-
You could map it so you can hit a combo of inputs to exit out.
-
If all else fails, mount a discreet small button somewhere out of sight and create a simple keyboard hack. This may offer other uses if you discover new needs for the machine or want to expand functionality.
-
You could map it so you can hit a combo of inputs to exit out.
That will be your easiest bet. You can go into Mame right now and configure "UI cancel" to be any combination of existing buttons.
-
One other option is to have a tiny separate application that is always on top.
This app has one button which generates an escape click when pressed.
Then you don't need any hardware buttons.
-
You could map it so you can hit a combo of inputs to exit out.
That will be your easiest bet. You can go into Mame right now and configure "UI cancel" to be any combination of existing buttons.
TOUCHSCREEN ?!?
If they had other buttons would you think it would be such a problem to "add" a button. ;)
Even though MAME was mentioned, I'm thinking it was meant to be just for the Touchmaster/Megatouch games. (my interpretation anyways)
-
Oops...missed the touchscreen part.
Why do you need to exit out at all?
-
i know this is a touchscreen, and i'm not familair with touchmaster, but will you not need any other buttons, such as coin inputs? if you will need coin slots or something, then you would need some kind of input interface, such as a gamepad hack or keyboard encoder.
gamepad hacks are pretty easy, and you can get a usb gamepad for a pretty reasonable price
-
Mlalena, I was thinking about something like that,but I have very little programing experience. do you know of anyone that could help me
-
If you change your mind about the KB hack... Check out my arcade PC website.
Find your button in the matrix and then you only need to solder two wires.
Good Luck.
-
Thanks for all the interest in my post everyone! I'd like to clarify a little, the topic name is a bit misleading as I'm building a touchscreen jukebox that will not have any buttons at all on it. (see craptacular picture attatched). The machine will primarily be a Juke, but will have a "Games" screen used to launch mame games: touchmaster, touchmaster 3000, 4000, 5000, 7000 and 8000 all set to freeplay from the service menu. As the touchscreen is basically a mouse and mouseclicks, I will need a way to exit from mame and get back to xlobby (the jukebox)
I really like the idea of creating an application to run on top of mame with an "exit" button in one corner that would send a keypress of esc to mame. I don't know much about programming, but i can't see this as being too difficult, If anyone could help me I'd be glad to send a few bucks (paypal) for your trouble, or maybe we could work out something else,
Thanks
(edit to mention games are set to freeplay)
-
cheapest ($15-20) and easy way....doing it remotely.
Get the AIRCLICK USB. It's advertise as a Multimedia Control but there is a plugin and act as a KEYBORD (ARROWS, ENTER) and also controls the Volume +/-.
All you have to do it set the ESC in MAME as the ENTER KEY and have the remote somewhere.
Also good for Shutting Down the Machine properly (by pressing the PLAY/ENTER by 5 sec).
-
I admit defeat.
I whipped up a prototype virtual button program for you, and it all works except that I can't get it to appear on top of MAME. It appears on top of Mala fine. Don't have any more time to look at it today but maybe someone else can.
I posted everything to my site including source code here: http://www.lalena.com/MAME/VirtualButton.html
All parameters are command line based. I'm lazy.
-
Wow, thanks for trying mlalena!
This program seems perfect if we could get it to work. I think I'll make a post about it in the software forum if you don't mind.
and Thenasty, that airclick remote is pretty cool, they're only 6-9$ on ebay so i'll probably pick one up anyway, thanks for pointing it out.
-
I remember reading about a mouse macro that could generate a keypress by moving the mouse in a prerecorded pattern, but I can't find anything on the subject at the moment.
If you want a program like that you can use a mouse gesture program like this one (http://www.tcbmi.com/strokeit/). I have never used that one so don't take this a huge endorsement of that particular program, it was just the first google hit. That said that program looks like it should do what you want.
-
I admit defeat.
I whipped up a prototype virtual button program for you, and it all works except that I can't get it to appear on top of MAME. It appears on top of Mala fine. Don't have any more time to look at it today but maybe someone else can.
I posted everything to my site including source code here: http://www.lalena.com/MAME/VirtualButton.html
All parameters are command line based. I'm lazy.
Problem you will be having is the mame window is directx, if you are just making a form stay on top it will not be ontop of that.
-
Thanks Sir Headless VII! This program is exactly what I was talking about. It works great for closing a few other programs like winamp visualizations but I'm having some trouble with it in MAME. The same problem that mlalena ran into while making the virtual button app is happening. It seems that MAME either completely takes over all keyboard/mouse inputs until it is closed, or it doesn't allow 3rd party applications to send keypresses.
In other words:
- the mouse gesture program (strokeit) is up and running and working as it's supposed to
- I've configured it to send "ESCAPE" to mame on select mouse gestures
- While in MAME, StrokeIt appears to recognize the gestures, but nothing happens in mame
- Tried with many different keys set as "Cancel UI" in the Tab menu
anyone know any way around this?
-
Problem you will be having is the mame window is directx, if you are just making a form stay on top it will not be ontop of that.
OK. Maybe making my app DirectX also might help. It doesn't look that difficult given that all I am doing is showing a form with a label on it & one click event handler. I won't be able to get to this until tonight.
-
Thenasty, that airclick remote is pretty cool, they're only 6-9$ on ebay so i'll probably pick one up anyway, thanks for pointing it out.
LMK when you get yours. Need a photo of the wiring. I accidentally busted the USB part and 3 wires were loose and e-mailed griffin for wiring but did not want to give the info to me.
There are 5 wires inside the USB connector (cover easily remove). 2 are attached but 3 need to be re-soldered in the right USB pin.
-
here is a picture
-
LMK when you get yours. Need a photo of the wiring. I accidentally busted the USB part and 3 wires were loose and e-mailed griffin for wiring but did not want to give the info to me.
sure, no problem
-
You might be able to make your MAME windowed and then have a strip at the top/bottom/side/where ever that has your quit button. That way, MAME and your app won't fight for control. The only other way I see is having a custom bezel for MAME that is just a "button" picture and use AHK or whatever to determine if you clicked on that spot. It's a clunky solution, but it might work. :dunno