FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Use accelerometer in Simulator

2 posters

Go down

Use accelerometer in Simulator Empty Use accelerometer in Simulator

Post  cybergreg Thu Jul 23, 2009 9:11 pm

I've been using this for awhile - works frakin' awesome; just drop the two files into your project and compile / install the app on your device. Launch the app, turn on network and control your Sim app's accelerometer via your device.

http://code.google.com/p/accelerometer-simulator/wiki/Home

:-)
cybergreg
cybergreg

Posts : 21
Join date : 2009-07-21
Location : SoCal, USA

Back to top Go down

Use accelerometer in Simulator Empty Re: Use accelerometer in Simulator

Post  sio2interactive Fri Jul 24, 2009 12:48 am

Dude... i think you miss understand the concept of tutorial13_1 & 13_2 its exactly the same thing... simply drop a .cc and .h into your app initialize and voila Wink

No need to go for something else... SIO2 got it all working out of the box... and all events are dispatch through the network the SIO2 way and is also the approach that I use to work with SIO2 on windows, so basically its universal, using pure TCP/IP... why complicating your life with other 3rd party library Wink

Cheers,
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 44
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Use accelerometer in Simulator Empty Re: Use accelerometer in Simulator

Post  cybergreg Fri Jul 24, 2009 5:13 am

Sorry - my bad - haven't gotten that far yet
Embarassed

Edit: Okay I looked over both tutorials and while this functionality seems very powerful I think you missed the point and functionality of the one I listed.

To use in your app: You also only drop in a .m and .h file and include it where you use the accelerometer. The benefit is it overrides the UIAccelerometer class ONLY when you compile for the Simulator. When you compile for your device it does nothing.

Example: Game that uses accelerometer running in Simulator w/this code will receive actual accelerometer input from the device you are running AccSim on.

I apologize if it's just my ignorance of SIO2 but neither 13_1 or 13_2 did this for me when I tested them.
Cool

PS Thanks for your effort in ALL of this. The tutorials are great and so far the SDK looks very impressive.
cybergreg
cybergreg

Posts : 21
Join date : 2009-07-21
Location : SoCal, USA

Back to top Go down

Use accelerometer in Simulator Empty Re: Use accelerometer in Simulator

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum