Skip to content

Commit

Permalink
Fix virt. keyboard for Android.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Jan 6, 2025
1 parent 2f25024 commit a567b5e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/media/media.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,11 @@ int ctr_internal_media_mouse_down(SDL_Event event) {
CtrMediaPrevClickY = event.button.y;
CtrMediaPrevClickTime = SDL_GetTicks64();
ctr_internal_img_render_text(focusObject);
SDL_StartTextInput();
}
else {
focusObject = NULL;
SDL_StopTextInput();
}
ctr_argument* args = ctr_heap_allocate(sizeof(ctr_argument));
ctr_send_message(mediaIMGs[i].ref, CTR_DICT_ON_CLICK, strlen(CTR_DICT_ON_CLICK), args);
Expand Down

0 comments on commit a567b5e

Please sign in to comment.