Skip to content

Added support files for Accelerometer Simulation for iPhone Simulator an... #760

Merged
merged 1 commit into from Mar 9, 2012

2 participants

@minggo
minggo commented Mar 9, 2012

Thank you, may be you can also write a document to describe how to use it in http://www.cocos2d-x.org.

@minggo minggo merged commit 818884d into cocos2d:master Mar 9, 2012
@Wartortle

Hi Minggo,
There isn't very much to do. I've logged in to the Cocos2D-x site but can't see how I can change any of the Wiki pages. Perhaps I don't have the correct access rights.

To use this under the iOS simulator, you don't need to do anything - the code is automatically compiled in just for the simulator and, if active, it overrides the default accelerometer control to interface with Unimotion.

Basically, to use Unimotion, follow the instructions for building it as indicated here:
https://github.com/gmarik/unimotion

Once built, run Unimotion as given in the above docs.
Build your iOS app and run on the iOS Simulator.
Pick up your macbook and wiggle it around and the accelerometer in the macbook will drive the accelerometer interface in the Cocos2D-x game.

Hope this helps.
Roc

@minggo
minggo commented Mar 12, 2012

I think you can write a doc in forum, then I will migrate it to wiki.

@minggo
minggo commented Mar 12, 2012

Thank you.
I have added a link in wiki.

@l4u l4u pushed a commit to l4u/cocos2d-x that referenced this pull request Mar 21, 2012
@minggo minggo fixed #760: add functions to get/add m_pNotificationNode 827ab96
@l4u l4u pushed a commit to l4u/cocos2d-x that referenced this pull request Mar 21, 2012
@minggo minggo fixed #760: implement functions in .cpp f6a5e89
@l4u l4u pushed a commit to l4u/cocos2d-x that referenced this pull request Mar 21, 2012
@minggo minggo fixed #760: implement functions in .cpp fd5ef0f
@angeltown angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 28, 2014
@minggo minggo fixed #760: add functions to get/add m_pNotificationNode dd7aff8
@angeltown angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 28, 2014
@minggo minggo fixed #760: implement functions in .cpp 26f934a
@angeltown angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 28, 2014
@minggo minggo fixed #760: implement functions in .cpp dd36b01
@angeltown angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 29, 2014
@minggo minggo fixed #760: add functions to get/add m_pNotificationNode 2dcf89c
@angeltown angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 29, 2014
@minggo minggo fixed #760: implement functions in .cpp 7314aec
@angeltown angeltown pushed a commit to angeltown/cocos2d-x that referenced this pull request Apr 29, 2014
@minggo minggo fixed #760: implement functions in .cpp 1e018f4
@minggo minggo added a commit that referenced this pull request May 4, 2014
@minggo minggo fixed #760: implement functions in .cpp 101f076
@minggo minggo added a commit that referenced this pull request May 4, 2014
@minggo minggo fixed #760: implement functions in .cpp c034f84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.