Use accelerometer in Simulator

View previous topic View next topic Go down

Use accelerometer in Simulator

Post  cybergreg on 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

:-)
avatar
cybergreg

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

View user profile

Back to top Go down

Re: Use accelerometer in Simulator

Post  sio2interactive on 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,

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Use accelerometer in Simulator

Post  cybergreg on 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.
avatar
cybergreg

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

View user profile

Back to top Go down

Re: Use accelerometer in Simulator

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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