File tree 2 files changed +8
-0
lines changed
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 @@ -3573,6 +3573,13 @@ bool IsImeOn(void)
3573
3573
return false;
3574
3574
}
3575
3575
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
+
3576
3583
// Set a custom key to exit program
3577
3584
// NOTE: default exitKey is ESCAPE
3578
3585
void SetExitKey (int key )
You can’t perform that action at this time.
0 commit comments