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

Firehawke
Manual Meister
Reged: 08/12/06
Posts: 665
Send PM
Not terribly likely as it stands-- read within.
07/11/11 09:48 AM


I read a review of the iCade over at Ars Technica a few days back. It basically presents itself as a bluetooth keyboard, and to preserve battery life as much as possible, they have done some oddities to the buttons and joystick.

Basically, it sends one keystroke when the button goes down, then another when the button goes back up-- state changes, in other words, instead of continuously sending the button when held. Same goes for the joystick directions, with on and off keystrokes for each.

The MAME keyboard interface as it stands is not well-suited for this kind of setup.

I imagine the best solution would be to write a PPJOY module that handles the weirdness and passes "cleaned pure status" to any and all games.

Here's a chunk of the open source API for your perusal, along with a link to reference it:

from https://github.com/scarnie/iCade-iOS/blob/master/iCadeTest/iCade/iCadeReaderView.h

Code:

/*
UP ON,OFF = w,e
RT ON,OFF = d,c
DN ON,OFF = x,z
LT ON,OFF = a,q
A ON,OFF = y,t
B ON,OFF = h,r
C ON,OFF = u,f
D ON,OFF = j,n
E ON,OFF = i,m
F ON,OFF = k,p
G ON,OFF = o,g
H ON,OFF = l,v
*/




---
Try checking the MAME manual at http://docs.mamedev.org







Entire thread
Subject Posted by Posted on
* Can we get iCade functionality in MAME please? :) Llaffer 06/18/11 08:03 PM
. * Re: Can we get iCade functionality in MAME please? :) R. Belmont  06/20/11 01:45 AM
. * Re: Can we get iCade functionality in MAME please? :) Llaffer  06/20/11 02:43 AM
. * Re: Can we get iCade functionality in MAME please? :) R. Belmont  06/20/11 05:25 PM
. * Re: Can we get iCade functionality in MAME please? :) Llaffer  06/20/11 07:16 PM
. * Re: Can we get iCade functionality in MAME please? :) R. Belmont  06/20/11 09:10 PM
. * Re: Can we get iCade functionality in MAME please? :) Llaffer  06/23/11 01:54 AM
. * Re: Can we get iCade functionality in MAME please? :) R. Belmont  06/23/11 10:39 PM
. * Not terribly likely as it stands-- read within. Firehawke  07/11/11 09:48 AM
. * Re: Not terribly likely as it stands-- read within. R. Belmont  07/15/11 04:21 PM
. * Re: Not terribly likely as it stands-- read within. Firehawke  07/15/11 05:06 PM
. * Re: Not terribly likely as it stands-- read within. R. Belmont  07/15/11 07:06 PM
. * Re: Not terribly likely as it stands-- read within. Llaffer  07/16/11 06:15 PM
. * Re: Not terribly likely as it stands-- read within. R. Belmont  07/18/11 09:46 PM
. * Re: Not terribly likely as it stands-- read within. krick  11/03/11 02:06 AM
. * Re: Not terribly likely as it stands-- read within. Tingoes  09/29/11 04:44 PM
. * Re: Not terribly likely as it stands-- read within. R. Belmont  09/29/11 05:03 PM
. * Screw Apple mogli  11/02/11 10:55 PM

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