emufreak / iAmiga

iAmiga sources
45 stars 17 forks source link

-Added MultiPeerConnectivity for both joystick ports for use with iDe… #24

Closed mithrendal closed 8 years ago

mithrendal commented 8 years ago

…vices as remotes.

have fun http://www.lemonamiga.com/games/list.php?list_min_players=1&list_max_players=2&list_simultaneous_play=yes

mithrendal commented 8 years ago

why is it MultiPeer ? the following constellations are possible on "modern" devices: case 1. one host device, two player remote devices (one for each port). The host device is always the display. case 2. one player plays directly on the host on joystick 1, while the other device acts as a remote and sends its joypad signals to the hosts joystick port 0. case 3. Connect multiple devices to the same joystick port is possible. One does fire the other controls the direction for instance.

In theory up to 7 devices could be linked together over WIFI. :-)

I read that on older devices like ipad2 the multipeerconnectivity only supports bluetooth connections. So the multi thing is maybe somewhat reduced and not 7 devices on older devices. I have only modern devices could some one test ? I tested ones a previous version with a friends ipad2 and I know for sure that the case 2 worked fine.

simontoens commented 8 years ago

@mithrendal that looks really cool!

mithrendal commented 8 years ago

@simontoens @emufreak refactoring done, as simon proposed ;-)

simontoens commented 8 years ago

Thanks for making all the changes!

emufreak commented 8 years ago

Hi @mithrendal

That sounds great. Thanks for this. I'll have a look at it as soon as I have a moment and then merge this.

emufreak commented 8 years ago

I'll merge now to be able to rename the branch