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 @@ -3564,6 +3564,13 @@ void GetPreeditWindowPosition(int *x, int *y)
3564
3564
glfwGetPreeditCursorPos (CORE .Window .handle , x , y , NULL );
3565
3565
}
3566
3566
3567
+ // Check if IME is ON
3568
+ bool IsImeOn (void )
3569
+ {
3570
+ if (glfwGetInputMode (CORE .Window .handle , GLFW_IME ) == GLFW_TRUE ) return true;
3571
+ return false;
3572
+ }
3573
+
3567
3574
// Set a custom key to exit program
3568
3575
// NOTE: default exitKey is ESCAPE
3569
3576
void SetExitKey (int key )
You can’t perform that action at this time.
0 commit comments