- Home /
Using iPhone as gamepad for Standalone
Hey guys,
I've seen this video from CES 2011. An iPhone is used as gamepad for a game: youtube video
I really like to know how this can be done, it's very interesting! Any idea? Suggestions?
Joel
Yes, that's the idea, but I want to use the iPhone as gamepad for a standalone game running on $$anonymous$$AC or Windows. The problem is how to connect the iPhone app with the standalone app? sockets? Any suggestion? :-)
there is a $$anonymous$$ac version of PadRacer which does exactly what you say, I believe. iphone == handset, your mac == the screen of the game.
Yes, this is the game: http://itunes.apple.com/us/app/padracer-for-mac/id419992421?mt=12
This is what I want to know how can be done.
http://unity3d.com/support/documentation/Components/Networking%20on%20iOS.html looks like it should be achievable using standard networking code.
Answer by KvanteTore · Oct 10, 2011 at 01:57 PM
I guess some kind of socket connection would be the way to go. Shooting a bit from the hip, you might be able to use the built in unity networking client (caveat: I don't know if the desktop and mobile networking stacks are compatible) and let iphone client control one controller object (use accelerometer to rotate a box or something like that), and the read off those values in the desktop client.
http://unity3d.com/support/documentation/Components/Networking%20on%20iOS.html seems to suggest that the network stacks are compatible, so it should at least in principle be possible.
Answer by PatrikNyblad_SI · Oct 14, 2011 at 06:56 AM
If you are making your own game in Unity and have the ability to build for iPhone as well I would suggest you hook your game up to your iPhone with Unity Networking. After that i would use the joysticks from the latest unity example project (AngryBots) and just sent the input from the joysticks to the server (your game) with RPC calls.
Do you have a more concrete example so we can give more feedback?