Add API: SetPreeditCursorRectangle
This is for GLFW3: glfwSetPreeditCursorRectangle
This commit is contained in:
parent
71bb40a9e4
commit
b63d0eb162
|
|
@ -606,6 +606,13 @@ void OpenURL(const char *url)
|
||||||
// Module Functions Definition: Inputs
|
// 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
|
// Set internal gamepad mappings
|
||||||
int SetGamepadMappings(const char *mappings)
|
int SetGamepadMappings(const char *mappings)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1042,6 +1042,13 @@ void OpenURL(const char *url)
|
||||||
// Module Functions Definition: Inputs
|
// 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
|
// Set internal gamepad mappings
|
||||||
int SetGamepadMappings(const char *mappings)
|
int SetGamepadMappings(const char *mappings)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -927,6 +927,13 @@ void OpenURL(const char *url)
|
||||||
// Module Functions Definition: Inputs
|
// 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
|
// Set internal gamepad mappings
|
||||||
int SetGamepadMappings(const char *mappings)
|
int SetGamepadMappings(const char *mappings)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -602,6 +602,13 @@ void OpenURL(const char *url)
|
||||||
// Module Functions Definition: Inputs
|
// 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
|
// Set internal gamepad mappings
|
||||||
int SetGamepadMappings(const char *mappings)
|
int SetGamepadMappings(const char *mappings)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -364,6 +364,13 @@ void OpenURL(const char *url)
|
||||||
// Module Functions Definition: Inputs
|
// 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
|
// Set internal gamepad mappings
|
||||||
int SetGamepadMappings(const char *mappings)
|
int SetGamepadMappings(const char *mappings)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -848,6 +848,13 @@ void OpenURL(const char *url)
|
||||||
// Module Functions Definition: Inputs
|
// 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
|
// Set internal gamepad mappings
|
||||||
int SetGamepadMappings(const char *mappings)
|
int SetGamepadMappings(const char *mappings)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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 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 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 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
|
// Input-related functions: gamepads
|
||||||
RLAPI bool IsGamepadAvailable(int gamepad); // Check if a gamepad is available
|
RLAPI bool IsGamepadAvailable(int gamepad); // Check if a gamepad is available
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user