You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in game scene,when press the NATIVE back button,the application was turn off.can I holding the back button?
the code for the layer:
setIsKeyEnabled(true); @OverRide
public boolean ccKeyDown(int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
if (keyCode == KeyEvent.KEYCODE_BACK) {
CCDirector.sharedDirector().popScene();
return true;
}
return super.ccKeyDown(keyCode, event);
}
not useful...
please help me.
The text was updated successfully, but these errors were encountered:
in game scene,when press the NATIVE back button,the application was turn
off.can I holding the back button?
the code for the layer:
setIsKeyEnabled(true); @OverRidehttps://github.com/override
public boolean ccKeyDown(int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
// Log.e("toufu", keyCode + "");
if (keyCode == KeyEvent.KEYCODE_BACK) {
CCDirector.sharedDirector().popScene();
return true;
}
return super.ccKeyDown(keyCode, event);
}
not useful...
please help me.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/64.
why? when I push a scene A to director,then push another one(scene B),so when I push back button,it seem need to popScene to scene A,not close the app.
in game scene,when press the NATIVE back button,the application was turn off.can I holding the back button?
the code for the layer:
setIsKeyEnabled(true);
@OverRide
public boolean ccKeyDown(int keyCode, KeyEvent event) {
// TODO Auto-generated method stub
if (keyCode == KeyEvent.KEYCODE_BACK) {
CCDirector.sharedDirector().popScene();
return true;
}
return super.ccKeyDown(keyCode, event);
}
not useful...
please help me.
The text was updated successfully, but these errors were encountered: