comparison android/project/jni/android-support.cpp @ 4957:5e42031a8d70

Need to set something valid for argc/argv
author Sam Lantinga <slouken@libsdl.org>
date Tue, 04 Jan 2011 15:25:49 -0800
parents 4f40b11e1045
children
comparison
equal deleted inserted replaced
4956:e0bd00bfd118 4957:5e42031a8d70
101 mEnv = env; 101 mEnv = env;
102 bRenderingEnabled = true; 102 bRenderingEnabled = true;
103 103
104 Android_EnableFeature(FEATURE_ACCEL, true); 104 Android_EnableFeature(FEATURE_ACCEL, true);
105 105
106 SDL_main(0, 0); 106 char *argv[2];
107 argv[0] = strdup("SDL_app");
108 argv[1] = NULL;
109 SDL_main(1, argv);
107 } 110 }
108 111
109 //Keydown 112 //Keydown
110 extern "C" void Java_org_libsdl_app_SDLActivity_onNativeKeyDown(JNIEnv* env, 113 extern "C" void Java_org_libsdl_app_SDLActivity_onNativeKeyDown(JNIEnv* env,
111 jobject obj, jint keycode){ 114 jobject obj, jint keycode){