mirror of https://github.com/encounter/SDL.git
Android: remove "nativeSetComposingText" since it's not used anymore
(and it may fail registering at init if code is cleaned with proguard)
This commit is contained in:
parent
eac3d6d3c0
commit
fdef96e233
|
@ -2000,10 +2000,7 @@ class SDLInputConnection extends BaseInputConnection {
|
||||||
|
|
||||||
public static native void nativeCommitText(String text, int newCursorPosition);
|
public static native void nativeCommitText(String text, int newCursorPosition);
|
||||||
|
|
||||||
public native void nativeGenerateScancodeForUnichar(char c);
|
public static native void nativeGenerateScancodeForUnichar(char c);
|
||||||
|
|
||||||
public native void nativeSetComposingText(String text, int newCursorPosition);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class SDLClipboardHandler implements
|
class SDLClipboardHandler implements
|
||||||
|
|
|
@ -212,14 +212,9 @@ JNIEXPORT void JNICALL SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeGenerateScancod
|
||||||
JNIEnv *env, jclass cls,
|
JNIEnv *env, jclass cls,
|
||||||
jchar chUnicode);
|
jchar chUnicode);
|
||||||
|
|
||||||
JNIEXPORT void JNICALL SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeSetComposingText)(
|
|
||||||
JNIEnv *env, jclass cls,
|
|
||||||
jstring text, jint newCursorPosition);
|
|
||||||
|
|
||||||
static JNINativeMethod SDLInputConnection_tab[] = {
|
static JNINativeMethod SDLInputConnection_tab[] = {
|
||||||
{ "nativeCommitText", "(Ljava/lang/String;I)V", SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeCommitText) },
|
{ "nativeCommitText", "(Ljava/lang/String;I)V", SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeCommitText) },
|
||||||
{ "nativeGenerateScancodeForUnichar", "(C)V", SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeGenerateScancodeForUnichar) },
|
{ "nativeGenerateScancodeForUnichar", "(C)V", SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeGenerateScancodeForUnichar) }
|
||||||
{ "nativeSetComposingText", "(Ljava/lang/String;I)V", SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeSetComposingText) }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Java class SDLAudioManager */
|
/* Java class SDLAudioManager */
|
||||||
|
@ -1286,17 +1281,6 @@ JNIEXPORT void JNICALL SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeGenerateScancod
|
||||||
SDL_SendKeyboardUnicodeKey(chUnicode);
|
SDL_SendKeyboardUnicodeKey(chUnicode);
|
||||||
}
|
}
|
||||||
|
|
||||||
JNIEXPORT void JNICALL SDL_JAVA_INTERFACE_INPUT_CONNECTION(nativeSetComposingText)(
|
|
||||||
JNIEnv *env, jclass cls,
|
|
||||||
jstring text, jint newCursorPosition)
|
|
||||||
{
|
|
||||||
const char *utftext = (*env)->GetStringUTFChars(env, text, NULL);
|
|
||||||
|
|
||||||
SDL_SendEditingText(utftext, 0, 0);
|
|
||||||
|
|
||||||
(*env)->ReleaseStringUTFChars(env, text, utftext);
|
|
||||||
}
|
|
||||||
|
|
||||||
JNIEXPORT jstring JNICALL SDL_JAVA_INTERFACE(nativeGetHint)(
|
JNIEXPORT jstring JNICALL SDL_JAVA_INTERFACE(nativeGetHint)(
|
||||||
JNIEnv *env, jclass cls,
|
JNIEnv *env, jclass cls,
|
||||||
jstring name)
|
jstring name)
|
||||||
|
|
Loading…
Reference in New Issue