Add API: ResetPreedit

This is for GLFW3: glfwResetPreeditText
This commit is contained in:
Daijiro Fukuda 2022-08-26 17:40:27 +09:00 committed by Takuro Ashie
parent d004c665d0
commit c2286f2804
7 changed files with 37 additions and 0 deletions

View File

@ -632,6 +632,12 @@ void SetImeStatus(bool on)
TRACELOG(LOG_WARNING, "SetImeStatus() not implemented on target platform");
}
// Reset preedit text
void ResetPreedit(void)
{
TRACELOG(LOG_WARNING, "ResetPreedit() not implemented on target platform");
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -1069,6 +1069,12 @@ void SetImeStatus(bool on)
else glfwSetInputMode(platform.handle, GLFW_IME, GLFW_FALSE);
}
// Reset preedit text
void ResetPreedit(void)
{
glfwResetPreeditText(platform.handle);
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -953,6 +953,12 @@ void SetImeStatus(bool on)
TRACELOG(LOG_WARNING, "SetImeStatus() not implemented on target platform");
}
// Reset preedit text
void ResetPreedit(void)
{
TRACELOG(LOG_WARNING, "ResetPreedit() not implemented on target platform");
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -628,6 +628,12 @@ void SetImeStatus(bool on)
TRACELOG(LOG_WARNING, "SetImeStatus() not implemented on target platform");
}
// Reset preedit text
void ResetPreedit(void)
{
TRACELOG(LOG_WARNING, "ResetPreedit() not implemented on target platform");
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -390,6 +390,12 @@ void SetImeStatus(bool on)
TRACELOG(LOG_WARNING, "SetImeStatus() not implemented on target platform");
}
// Reset preedit text
void ResetPreedit(void)
{
TRACELOG(LOG_WARNING, "ResetPreedit() not implemented on target platform");
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -875,6 +875,12 @@ void SetImeStatus(bool on)
else glfwSetInputMode(platform.handle, GLFW_IME, GLFW_FALSE);
}
// Reset preedit text
void ResetPreedit(void)
{
glfwResetPreeditText(platform.handle);
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -1175,6 +1175,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