Warning fixes, make the back button exit the emu on the main screen on Android.

This commit is contained in:
Henrik Rydgard committed 2013-09-04 10:51:14 +02:00
1 parent 9e5362ded1
commit 273fb7c941
6 files changed
+34 -25

No files matched your search

+9 -1
View File
@@ -598,7 +598,15 @@ void NativeDeviceLost() {
}
bool NativeIsAtTopLevel() {
return false;
Screen *currentScreen = screenManager->topScreen();
if (currentScreen) {
bool top = currentScreen->isTopLevel();
ILOG("Screen toplevel: %i", (int)top);
return currentScreen->isTopLevel();
} else {
ELOG("No current screen");
return false;
}
}
void NativeTouch(const TouchInput &touch) {