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
|