Android Orientation error
Android Orientation error
Bug #4625 [New]
Status: | New | |
---|---|---|
Start date: | 2014-03-31 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | android | |
Target version: | - |
Status: | New | |
---|---|---|
Start date: | 2014-03-31 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | android | |
Target version: | - |
Hi Everyone,
Cocos2dx is awesome, keep up the good work...
So I am using the new cocos2dx v3.0 rc0 to build a multiplatform game...
I manage to make the game working on all orientations on iOS and the I try to make this also on Android...
The main idea is to call the onOrientationChange of AppDelegate.
AppDelegate.h
virtual void onOrientationChange(bool isLandscape, int w, int h);
AppDelegate.cpp
void AppDelegate::onOrientationChange(bool isLandscape, int w, int h){}
CCApplicationProtocol.h
virtual void onOrientationChange(bool isLandscape, int w, int h) = 0;
nativeactivity.cpp
....
The strange thing is that the onOrientationChange function is called on my
samsung galaxy s3 and everything works fine...
on the Galaxy Tab 3 it is NOT working... onOrientationChange is not called at all!!!
Does anyone have any idea what is happening?
Thanks,
Stelios