Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - stinky ox

#1
Basically I modified scarnie's iCade reader view from his demo on github:

https://github.com/scarnie/iCade-iOS

I basically made the insertText method maintain a single bitmap of all the switch states in a single longword.  Whenever the state changes this is updated and passed out to the delegate, which makes it available to the games, which just read it as an int in an info structure.

This makes it easy to support the iCade completely transparently = you just do your normal controls, and additionally check the bitmap for any switch closures.  If there's no iCade the bitmap will be empty and you do nothing.  If there are bits there just act accordingly.