NatWeiss / RapidGame

A commandline tool for Windows, Mac and Linux that prebuilds cocos2d-x static libraries. Also a cross-platform game templating system.
https://github.com/NatWeiss/RapidGame
MIT License
139 stars 22 forks source link

Device orientation #10

Closed nanocore closed 9 years ago

nanocore commented 9 years ago

Have you looked into how code could be added to each of the device specific files that would generate a device orientation event (even a EventCustom event). This could then be listened by the shared c++ code in the projects directory. That way the shared code ciuld handle device orientation changes in a single place. And to be clear this is more then just the initial device orientation but any rotation of the device would trigger an event.

nanocore commented 9 years ago

I added the code, at least to the iOS side and will see how to mimic the same type of solution for the android side (if I can ever get it to actually compile).

NatWeiss commented 9 years ago

Thanks for the suggestion and sorry I missed your previous comment from 2 weeks ago.