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.
1279
+
elseglfwInitHint(GLFW_MANAGE_PREEDIT_CANDIDATE, GLFW_FALSE); // Leave the drawing of preedit candidates to the IME
1280
+
1270
1281
// Initialize GLFW internal global state
1271
1282
intresult=glfwInit();
1272
1283
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.
1051
+
elseglfwInitHint(GLFW_MANAGE_PREEDIT_CANDIDATE, GLFW_FALSE); // Leave the drawing of preedit candidates to the IME
1052
+
1043
1053
// Initialize GLFW internal global state
1044
1054
intresult=glfwInit();
1045
1055
if (result==GLFW_FALSE) { TRACELOG(LOG_WARNING, "GLFW: Failed to initialize GLFW"); return-1; }
RLAPIboolIsKeyPressed(intkey); // Check if a key has been pressed once
1165
1174
RLAPIboolIsKeyPressedRepeat(intkey); // Check if a key has been pressed again (Only PLATFORM_DESKTOP)
@@ -1175,6 +1184,8 @@ RLAPI void GetPreeditCursorRectangle(int *x, int *y, int *w, int *h); // Get the
1175
1184
RLAPIboolIsImeOn(void); // Check if IME is ON
1176
1185
RLAPIvoidSetImeStatus(boolon); // Set IME status
1177
1186
RLAPIvoidResetPreedit(void); // Reset preedit text
1187
+
RLAPIvoidSetPreeditCandidateCallback(PreeditCandidateCallbackcallback); // Set a callback for preedit candidates
1188
+
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
1178
1189
1179
1190
// Input-related functions: gamepads
1180
1191
RLAPIboolIsGamepadAvailable(intgamepad); // Check if a gamepad is available
0 commit comments