T-Pau / Ready

A Home Computer Emulator for iPad.
Other
57 stars 6 forks source link

add iCade support #13

Open netunlimited opened 3 years ago

netunlimited commented 3 years ago

This is a really cool project. It would be great if it would have support for the iCade controller.

dillof commented 3 years ago

I tried to find documentation for iCade but came up empty. All I know is that it appears to the iPad as a bluetooth keyboard. Do you have additional information, especially:

yours, dillo

netunlimited commented 3 years ago

A long time ago I've implemented iCade support in one of my iOS games. As far as I remember there is no way to detect it automatically. So I just added a setting in the app for the user to enable his iCade. After that I just had to make the app listen to the expected key presses.

As for the mapped keys, it's explained here: https://www.raywenderlich.com/2958-adding-icade-support-to-your-game

dillof commented 3 years ago

Thanks for the link, it seems to contain all the information I'd need.

I'll think about it. iCade doesn't seem to be a common device, but if I can fit it in easily, I'll add support for it. It probably won't be soon, though.