Fixed Return key not sent in the SDL_ANDROID text input
This commit is contained in:
@@ -696,6 +696,8 @@ void SDL_ANDROID_TextInputInit(char * buffer, int len)
|
||||
JNIEXPORT void JNICALL
|
||||
JAVA_EXPORT_NAME(DemoRenderer_nativeTextInput) ( JNIEnv* env, jobject thiz, jint ascii, jint unicode )
|
||||
{
|
||||
if( ascii == 10 )
|
||||
ascii = SDLK_RETURN;
|
||||
if( !textInputBuffer )
|
||||
SDL_ANDROID_MainThreadPushText(ascii, unicode);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user