Some cleanup

This commit is contained in:
Henrik Rydgard committed 2014-07-18 16:07:36 +02:00
1 parent 31f7ad574a
commit 3b45ca1d2f
5 files changed
+59 -47

No files matched your search

+2 -8
View File
@@ -44,8 +44,6 @@ std::queue<FrameCommand> frameCommands;
std::string systemName;
std::string langRegion;
const bool extraLog = true;
static float left_joystick_x_async;
static float left_joystick_y_async;
static float right_joystick_x_async;
@@ -134,13 +132,9 @@ extern "C" jboolean Java_com_henrikrydgard_libnative_NativeApp_isLandscape(JNIEn
return landscape;
}
// For the Back button to work right.
// Allow the app to intercept the back button.
extern "C" jboolean Java_com_henrikrydgard_libnative_NativeApp_isAtTopLevel(JNIEnv *env, jclass) {
bool isAtTop = NativeIsAtTopLevel();
if (extraLog) {
ILOG("isAtTopLevel %i", (int)isAtTop);
}
return isAtTop;
return NativeIsAtTopLevel();
}
extern "C" void Java_com_henrikrydgard_libnative_NativeApp_audioConfig