[Input pipe] Make char callbacks not always put to stack queue

This commit is contained in:
khanhduytran0 2020-11-16 12:46:27 +07:00
parent 55a966d018
commit 97904c3b4a
3 changed files with 14 additions and 8 deletions

View File

@ -0,0 +1,6 @@
package net.kdt.pojavlaunch.customcontrols;
public class DynamicControlButton extends ControlButton
{
// TODO for ${value}
}

View File

@ -185,11 +185,11 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeIsGrabbing(J
JNIEXPORT jboolean JNICALL Java_org_lwjgl_glfw_CallbackBridge_nativeSendChar(JNIEnv* env, jclass clazz, jint codepoint) {
if (GLFW_invoke_Char && isInputReady) {
// if (isMinecraft1p12 || isUseStackQueueCall) {
if (isMinecraft1p12 || isUseStackQueueCall) {
sendData(EVENT_TYPE_CHAR, codepoint, 0, 0, 0);
/* } else {
} else {
GLFW_invoke_Char(showingWindow, codepoint);
} */
}
return JNI_TRUE;
}
return JNI_FALSE;
@ -197,11 +197,11 @@ 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) {
if (GLFW_invoke_CharMods && isInputReady) {
// if (isMinecraft1p12 || isUseStackQueueCall) {
if (isMinecraft1p12 || isUseStackQueueCall) {
sendData(EVENT_TYPE_CHAR_MODS, codepoint, mods, 0, 0);
/* } else {
} else {
GLFW_invoke_CharMods(showingWindow, codepoint, mods);
} */
}
return JNI_TRUE;
}
return JNI_FALSE;

View File

@ -17,12 +17,12 @@
android:layout_width="wrap_content"
android:layout_alignParentRight="true"/>
<net.kdt.pojavlaunch.value.customcontrols.ControlsLayout
<net.kdt.pojavlaunch.customcontrols.ControlsLayout
android:id="@+id/customctrl_controllayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
</net.kdt.pojavlaunch.value.customcontrols.ControlsLayout>
</net.kdt.pojavlaunch.customcontrols.ControlsLayout>
</RelativeLayout>