Skip to content

Commit 004238c

Browse files
authored
Merge pull request #1221 from ZalithLauncher/fix/lwjgl_ime_preedit_rectangle
fix(LWJGL): 缺少输入法定位函数,导致 TouchController 崩溃
2 parents 3be1c55 + 3467d2f commit 004238c

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

LWJGL/src/main/java/org/lwjgl/glfw/GLFW.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,16 @@ public static void glfwSetCursor(@NativeType("GLFWwindow *") long window, @Nativ
12781278
CallbackBridge.nativeSetCursorShape(CursorRegistry.getShape(cursor));
12791279
}
12801280

1281+
/** {@code void glfwGetPreeditCursorRectangle(GLFWwindow * window, int * x, int * y, int * w, int * h)} */
1282+
public static void glfwGetPreeditCursorRectangle(@NativeType("GLFWwindow *") long window, @NativeType("int *") @Nullable IntBuffer x, @NativeType("int *") @Nullable IntBuffer y, @NativeType("int *") @Nullable IntBuffer w, @NativeType("int *") @Nullable IntBuffer h) {
1283+
1284+
}
1285+
1286+
/** {@code void glfwSetPreeditCursorRectangle(GLFWwindow * window, int x, int y, int w, int h)} */
1287+
public static void glfwSetPreeditCursorRectangle(@NativeType("GLFWwindow *") long window, int x, int y, int w, int h) {
1288+
1289+
}
1290+
12811291
public static boolean glfwRawMouseMotionSupported() {
12821292
// Should be not supported?
12831293
return false;
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1778130246845
1+
1778145738086

0 commit comments

Comments
 (0)