android/project/jni/android-support.cpp
changeset 4957 5e42031a8d70
parent 4953 4f40b11e1045
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){