MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Thad
MAME Fan
Reged: 07/10/11
Posts: 1
Send PM
Re: Sending Keys to MAME
07/10/11 04:02 AM


Hi -- sorry to walk right in and necro an old thread, but I've been working on a similar project and HowardC's post jumped out at me:

> There is your problem... you are trying to send keyboard input. Try joystick input,
> it's much simplier.

That sounds like a great idea but I'm at a bit of a loss on where to start.

Bit of background: I'm trying to get a decent Wii Remote gaming setup under Windows. Both OSX and Linux have pretty good keyboard emulation libraries for the remote, but the best thing Windows seems to have is GlovePIE, which, while an interesting and admirable piece of software, seems a bit hacky and has some rather bizarre license terms.

There are a few good libraries out for the Wii Remote; I'm currently working with the C#-based WiimoteLib but I'm not married to it. I've rigged it up to simulate keyboard presses using SendInput(), but as the OP notes that doesn't work for DirectInput.

Now, I stumbled across this thread looking for a solution to simulate keypresses using DirectInput, but HowardC makes an excellent point: joystick input would be much better for my purposes (since I'm using a game controller, after all).

So how WOULD I go about sending joystick data to MAME or similar programs? Do I need something like VJoy or PPJoy, as mentioned in headkaze's post? The Wii Remote DOES show up under Game Controllers in the Control Panel but shows no buttons or joysticks when you pull up its properties.

(I could, of course, use my current SendInput() keyboard emulation code WITH VJoy to get joystick output, but that seems needlessly convoluted -- using a game controller to emulate a keyboard emulating a game controller.)

Anyway, any ideas appreciated; thanks for reading this far.







Entire thread
Subject Posted by Posted on
* Sending Keys to MAME joeisen 03/14/10 02:26 AM
. * Re: Sending Keys to MAME MetalGod  09/08/19 03:33 AM
. * Re: Sending Keys to MAME headkaze  02/07/11 11:10 PM
. * Re: Sending Keys to MAME Dr_Lagaffe  09/06/11 09:58 AM
. * Re: Sending Keys to MAME tapley  08/31/19 01:54 PM
. * Re: Sending Keys to MAME Camame  08/14/23 03:05 AM
. * Accessibility Issues for Disabled Gamers SpecialEffect  10/03/11 02:01 PM
. * Re: Accessibility Issues for Disabled Gamers R. Belmont  10/03/11 04:27 PM
. * Re: Accessibility Issues for Disabled Gamers SpecialEffect  10/17/11 11:04 AM
. * Re: Sending Keys to MAME Counter Force  06/26/10 04:08 AM
. * Re: Sending Keys to MAME HowardC  03/25/10 10:49 PM
. * Re: Sending Keys to MAME Thad  07/10/11 04:02 AM
. * Re: Sending Keys to MAME joeisen  03/26/10 01:55 AM
. * Re: Sending Keys to MAME Lord Nightmare  06/28/10 09:20 AM
. * Re: Sending Keys to MAME R. Belmont  03/14/10 09:55 PM
. * Re: Sending Keys to MAME joeisen  03/15/10 06:43 PM
. * Re: Sending Keys to MAME Vas Crabb  03/14/10 10:52 PM
. * Re: Sending Keys to MAME R. Belmont  03/15/10 03:48 PM
. * Re: Sending Keys to MAME Vas Crabb  03/15/10 10:53 PM
. * Re: Sending Keys to MAME joeisen  03/15/10 11:21 PM
. * Re: Sending Keys to MAME joeisen  03/15/10 02:06 AM
. * Re: Sending Keys to MAME Vas Crabb  03/15/10 05:48 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 5 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 18007