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 @@ -1112,6 +1112,7 @@ RLAPI int GetCharPressed(void); // Get char presse
1112
1112
RLAPI void SetPreeditCallback (PreeditCallback callback ); // Set a callback for preedit
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
+ RLAPI bool IsImeOn (void ); // Check if IME is ON
1115
1116
1116
1117
// Input-related functions: gamepads
1117
1118
RLAPI bool IsGamepadAvailable (int gamepad ); // Check if a gamepad is available
Original file line number Diff line number Diff line change @@ -3566,6 +3566,13 @@ void GetPreeditWindowPosition(int *x, int *y)
3566
3566
glfwGetPreeditCursorPos (CORE .Window .handle , x , y , NULL );
3567
3567
}
3568
3568
3569
+ // Check if IME is ON
3570
+ bool IsImeOn (void )
3571
+ {
3572
+ if (glfwGetInputMode (CORE .Window .handle , GLFW_IME ) == GLFW_TRUE ) return true;
3573
+ return false;
3574
+ }
3575
+
3569
3576
// Set a custom key to exit program
3570
3577
// NOTE: default exitKey is ESCAPE
3571
3578
void SetExitKey (int key )
You can’t perform that action at this time.
0 commit comments