mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 15:48:26 -04:00
[Input pipe] Make char callbacks not always put to stack queue
This commit is contained in:
parent
55a966d018
commit
97904c3b4a
@ -0,0 +1,6 @@
|
||||
package net.kdt.pojavlaunch.customcontrols;
|
||||
|
||||
public class DynamicControlButton extends ControlButton
|
||||
{
|
||||
// TODO for ${value}
|
||||
}
|
@ -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;
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user