mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 15:48:26 -04:00
Cast to unsigned
This commit is contained in:
parent
97904c3b4a
commit
e37086b1da
@ -188,7 +188,7 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeSendChar(JNI
|
|||||||
if (isMinecraft1p12 || isUseStackQueueCall) {
|
if (isMinecraft1p12 || isUseStackQueueCall) {
|
||||||
sendData(EVENT_TYPE_CHAR, codepoint, 0, 0, 0);
|
sendData(EVENT_TYPE_CHAR, codepoint, 0, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
GLFW_invoke_Char(showingWindow, codepoint);
|
GLFW_invoke_Char(showingWindow, unsigned(codepoint));
|
||||||
}
|
}
|
||||||
return JNI_TRUE;
|
return JNI_TRUE;
|
||||||
}
|
}
|
||||||
@ -198,7 +198,7 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeSendChar(JNI
|
|||||||
JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeSendCharMods(JNIEnv* env, jclass clazz, jint codepoint, jint mods) {
|
JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeSendCharMods(JNIEnv* env, jclass clazz, jint codepoint, jint mods) {
|
||||||
if (GLFW_invoke_CharMods && isInputReady) {
|
if (GLFW_invoke_CharMods && isInputReady) {
|
||||||
if (isMinecraft1p12 || isUseStackQueueCall) {
|
if (isMinecraft1p12 || isUseStackQueueCall) {
|
||||||
sendData(EVENT_TYPE_CHAR_MODS, codepoint, mods, 0, 0);
|
sendData(EVENT_TYPE_CHAR_MODS, unsigned(codepoint), mods, 0, 0);
|
||||||
} else {
|
} else {
|
||||||
GLFW_invoke_CharMods(showingWindow, codepoint, mods);
|
GLFW_invoke_CharMods(showingWindow, codepoint, mods);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user