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
11131113RLAPI void SetPreeditWindowPosition (int x , int y ); // Set a preedit window postion XY
11141114RLAPI void GetPreeditWindowPosition (int * x , int * y ); // Get a preedit window postion XY
11151115RLAPI bool IsImeOn (void ); // Check if IME is ON
1116+ RLAPI void SetImeStatus (bool on ); // Set IME status
11161117
11171118// Input-related functions: gamepads
11181119RLAPI bool IsGamepadAvailable (int gamepad ); // Check if a gamepad is available
Original file line number Diff line number Diff line change @@ -3573,6 +3573,13 @@ bool IsImeOn(void)
35733573 return false;
35743574}
35753575
3576+ // Set IME status
3577+ void SetImeStatus (bool on )
3578+ {
3579+ if (on ) glfwSetInputMode (CORE .Window .handle , GLFW_IME , GLFW_TRUE );
3580+ else glfwSetInputMode (CORE .Window .handle , GLFW_IME , GLFW_FALSE );
3581+ }
3582+
35763583// Set a custom key to exit program
35773584// NOTE: default exitKey is ESCAPE
35783585void SetExitKey (int key )
You can’t perform that action at this time.
0 commit comments