mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
Include Android IME in Window Inset calculation
Android's IME (software keyboard) reports its covered region of the screen via the Window Insets functionality. When it is open, it is displayed over the application - so there needs to be a way for the application to determine what area is uncovered. The window insets (and SDL_GetWindowSafeArea) mechanism seems to be the best avenue for this.
This commit is contained in:
parent
65864190cc
commit
637a227d54
1 changed files with 2 additions and 1 deletions
|
|
@ -199,7 +199,8 @@ public class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
|
|||
WindowInsets.Type.systemGestures() |
|
||||
WindowInsets.Type.mandatorySystemGestures() |
|
||||
WindowInsets.Type.tappableElement() |
|
||||
WindowInsets.Type.displayCutout());
|
||||
WindowInsets.Type.displayCutout() |
|
||||
WindowInsets.Type.ime());
|
||||
|
||||
SDLActivity.onNativeInsetsChanged(combined.left, combined.right, combined.top, combined.bottom);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue