Add API: SetPreeditCursorRectangle

This is for GLFW3: glfwSetPreeditCursorRectangle
This commit is contained in:
Daijiro Fukuda 2022-11-30 21:43:42 +09:00 committed by Takuro Ashie
parent 71bb40a9e4
commit b63d0eb162
7 changed files with 43 additions and 0 deletions

View File

@ -606,6 +606,13 @@ void OpenURL(const char *url)
// Module Functions Definition: Inputs
//----------------------------------------------------------------------------------
// Set the preedit cursor area.
// This is used to decide the position of the candidate window.
void SetPreeditCursorRectangle(int x, int y, int w, int h)
{
TRACELOG(LOG_WARNING, "SetPreeditCursorRectangle() not implemented on target platform");
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -1042,6 +1042,13 @@ void OpenURL(const char *url)
// Module Functions Definition: Inputs
//----------------------------------------------------------------------------------
// Set the preedit cursor area.
// This is used to decide the position of the candidate window.
void SetPreeditCursorRectangle(int x, int y, int w, int h)
{
glfwSetPreeditCursorRectangle(platform.handle, x, y, w, h);
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -927,6 +927,13 @@ void OpenURL(const char *url)
// Module Functions Definition: Inputs
//----------------------------------------------------------------------------------
// Set the preedit cursor area.
// This is used to decide the position of the candidate window.
void SetPreeditCursorRectangle(int x, int y, int w, int h)
{
TRACELOG(LOG_WARNING, "SetPreeditCursorRectangle() not implemented on target platform");
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -602,6 +602,13 @@ void OpenURL(const char *url)
// Module Functions Definition: Inputs
//----------------------------------------------------------------------------------
// Set the preedit cursor area.
// This is used to decide the position of the candidate window.
void SetPreeditCursorRectangle(int x, int y, int w, int h)
{
TRACELOG(LOG_WARNING, "SetPreeditCursorRectangle() not implemented on target platform");
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -364,6 +364,13 @@ void OpenURL(const char *url)
// Module Functions Definition: Inputs
//----------------------------------------------------------------------------------
// Set the preedit cursor area.
// This is used to decide the position of the candidate window.
void SetPreeditCursorRectangle(int x, int y, int w, int h)
{
TRACELOG(LOG_WARNING, "SetPreeditCursorRectangle() not implemented on target platform");
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -848,6 +848,13 @@ void OpenURL(const char *url)
// Module Functions Definition: Inputs
//----------------------------------------------------------------------------------
// Set the preedit cursor area.
// This is used to decide the position of the candidate window.
void SetPreeditCursorRectangle(int x, int y, int w, int h)
{
glfwSetPreeditCursorRectangle(platform.handle, x, y, w, h);
}
// Set internal gamepad mappings
int SetGamepadMappings(const char *mappings)
{

View File

@ -1171,6 +1171,7 @@ RLAPI int GetKeyPressed(void); // Get key pressed
RLAPI int GetCharPressed(void); // Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty
RLAPI void SetExitKey(int key); // Set a custom key to exit program (default is ESC)
RLAPI void SetPreeditCallback(PreeditCallback callback); // Set a callback for preedit
RLAPI void SetPreeditCursorRectangle(int x, int y, int w, int h); // Set the preedit cursor area that is used to decide the position of the candidate window
// Input-related functions: gamepads
RLAPI bool IsGamepadAvailable(int gamepad); // Check if a gamepad is available