You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support the GLFW preedit candidate feature.
This feature supports only Win32 currently.
We can use this feature by enabling `FLAG_MANAGE_PREEDIT_CANDIDATE` flag
on Win32.
if ((CORE.Window.flags&FLAG_MANAGE_PREEDIT_CANDIDATE) >0) glfwInitHint(GLFW_MANAGE_PREEDIT_CANDIDATE, GLFW_TRUE); // Manage the drawing of preedit candidates.
1305
+
elseglfwInitHint(GLFW_MANAGE_PREEDIT_CANDIDATE, GLFW_FALSE); // Leave the drawing of preedit candidates to the IME
1306
+
1296
1307
// Initialize GLFW internal global state
1297
1308
intresult=glfwInit();
1298
1309
if (result==GLFW_FALSE) { TRACELOG(LOG_WARNING, "GLFW: Failed to initialize GLFW"); return-1; }
if ((CORE.Window.flags&FLAG_MANAGE_PREEDIT_CANDIDATE) >0) glfwInitHint(GLFW_MANAGE_PREEDIT_CANDIDATE, GLFW_TRUE); // Manage the drawing of preedit candidates.
1065
+
elseglfwInitHint(GLFW_MANAGE_PREEDIT_CANDIDATE, GLFW_FALSE); // Leave the drawing of preedit candidates to the IME
1066
+
1057
1067
// Initialize GLFW internal global state
1058
1068
intresult=glfwInit();
1059
1069
if (result==GLFW_FALSE) { TRACELOG(LOG_WARNING, "GLFW: Failed to initialize GLFW"); return-1; }
RLAPIboolIsKeyPressed(intkey); // Check if a key has been pressed once
1166
1175
RLAPIboolIsKeyPressedRepeat(intkey); // Check if a key has been pressed again (Only PLATFORM_DESKTOP)
@@ -1176,6 +1185,8 @@ RLAPI void GetPreeditCursorRectangle(int *x, int *y, int *w, int *h); // Get the
1176
1185
RLAPIboolIsImeOn(void); // Check if IME is ON
1177
1186
RLAPIvoidSetImeStatus(boolon); // Set IME status
1178
1187
RLAPIvoidResetPreedit(void); // Reset preedit text
1188
+
RLAPIvoidSetPreeditCandidateCallback(PreeditCandidateCallbackcallback); // Set a callback for preedit candidates
1189
+
RLAPIint*GetPreeditCandidate(intindex, int*textCount); // Get the text of the preedie candidate. This can be used only when `FLAG_MANAGE_PREEDIT_CANDIDATE` ConfigFlag is enabled on Win32
1179
1190
1180
1191
// Input-related functions: gamepads
1181
1192
RLAPIboolIsGamepadAvailable(intgamepad); // Check if a gamepad is available
0 commit comments