File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1113,6 +1113,7 @@ RLAPI void SetPreeditCallback(PreeditCallback callback); // Set a callback
1113
1113
RLAPI void SetPreeditWindowPosition (int x , int y ); // Set a preedit window postion XY
1114
1114
RLAPI void GetPreeditWindowPosition (int * x , int * y ); // Get a preedit window postion XY
1115
1115
RLAPI bool IsImeOn (void ); // Check if IME is ON
1116
+ RLAPI void SetImeStatus (bool on ); // Set IME status
1116
1117
1117
1118
// Input-related functions: gamepads
1118
1119
RLAPI bool IsGamepadAvailable (int gamepad ); // Check if a gamepad is available
Original file line number Diff line number Diff line change @@ -3571,6 +3571,13 @@ bool IsImeOn(void)
3571
3571
return false;
3572
3572
}
3573
3573
3574
+ // Set IME status
3575
+ void SetImeStatus (bool on )
3576
+ {
3577
+ if (on ) glfwSetInputMode (CORE .Window .handle , GLFW_IME , GLFW_TRUE );
3578
+ else glfwSetInputMode (CORE .Window .handle , GLFW_IME , GLFW_FALSE );
3579
+ }
3580
+
3574
3581
// Set a custom key to exit program
3575
3582
// NOTE: default exitKey is ESCAPE
3576
3583
void SetExitKey (int key )
You can’t perform that action at this time.
0 commit comments