Skip to content

Commit a72c0b8

Browse files
ribjb55
authored andcommitted
GameActivity PATCH: Expose TextEvent and input method state
This also adds `InputEvent::TextEvent` for notifying applications of IME state changes as well as explicit getter/setter APIs for tracking IME selection + compose region state. (only supported with GameActivity) Fixes: #18
1 parent 4b4ea7f commit a72c0b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android-activity/game-activity-csrc/game-activity/native_app_glue/android_native_app_glue.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ static void onTextInputEvent(GameActivity* activity,
680680
pthread_mutex_lock(&android_app->mutex);
681681
if (!android_app->destroyed) {
682682
android_app->textInputState = 1;
683+
notifyInput(android_app);
683684
}
684685
pthread_mutex_unlock(&android_app->mutex);
685686
}

0 commit comments

Comments
 (0)