diff --git a/src/raylib.h b/src/raylib.h index 6ea8d72a7390..52d8e3397477 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1114,6 +1114,7 @@ RLAPI void SetPreeditCursorRectangle(int x, int y, int w, int h); // Set the pre RLAPI void GetPreeditCursorRectangle(int *x, int *y, int *w, int *h); // Get the preedit cursor area RLAPI bool IsImeOn(void); // Check if IME is ON RLAPI void SetImeStatus(bool on); // Set IME status +RLAPI void ResetPreedit(void); // Reset preedit text // Input-related functions: gamepads RLAPI bool IsGamepadAvailable(int gamepad); // Check if a gamepad is available diff --git a/src/rcore.c b/src/rcore.c index c67ab30cb900..375fb3538bbc 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -3581,6 +3581,12 @@ void SetImeStatus(bool on) else glfwSetInputMode(CORE.Window.handle, GLFW_IME, GLFW_FALSE); } +// Reset preedit text +void ResetPreedit(void) +{ + glfwResetPreeditText(CORE.Window.handle); +} + // Set a custom key to exit program // NOTE: default exitKey is ESCAPE void SetExitKey(int key)