cocos2d-x/cocos2dx-webos — pull request #2 by ImperialPenguin (2012-06-07 23:51:37+00:00)
Title: Orientation fixes

Landscape mode wasn't working on my Palm Pre, and I'm guessing that portrait mode wasn't working on Touchpad, since Touchpad defaults to landscape. This code enables orientation changes with the setDeviceOrientation command and adds a command to the appDelegate for the tests app to switch to landscape mode. Because Touchpad does default to landscape, I've added code to do the opposite on Touchpad, otherwise Cocos2D will flip the screen the wrong way. I can confirm that this works on Palm Pre, but it would be nice if you could test it on Touchpad.
One problem that still remains is that the appDelegate create view needs to be the same size as the device, or things get messed up. This really needs to behave the way Android does. For example, you could set the view to 480,320 and it would automatically scale things up to Touchpad resolution. I couldn't quite get it working, but I'll try to revisit it after I fix a few more of the bugs that I have found.
Also, I created a new branch for these changes, but it is still sending you all of the changes that I have made. Even some that I went back and reversed (I put my makefiles back the way you add them.) Hopefully I'll figure out this github thing soon. I'd like to spend more time coding than I do fighting git.