From 39367f7e6d587efc228d0a27fe83a2a4643409ea Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 4 Apr 2026 09:23:31 -0700
Subject: [PATCH] Updated to the latest SDL release
---
.../app/src/main/java/org/libsdl/app/SDLActivity.java | 2 +-
.../app/src/main/java/org/libsdl/app/SDLSurface.java | 6 ++++++
external/SDL | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
index 0ca7b118..1c7ca013 100644
--- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
+++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
@@ -61,7 +61,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
private static final String TAG = "SDL";
private static final int SDL_MAJOR_VERSION = 3;
private static final int SDL_MINOR_VERSION = 4;
- private static final int SDL_MICRO_VERSION = 3;
+ private static final int SDL_MICRO_VERSION = 5;
/*
// Display InputType.SOURCE/CLASS of events and devices
//
diff --git a/android-project/app/src/main/java/org/libsdl/app/SDLSurface.java b/android-project/app/src/main/java/org/libsdl/app/SDLSurface.java
index 1579b733..42eceb50 100644
--- a/android-project/app/src/main/java/org/libsdl/app/SDLSurface.java
+++ b/android-project/app/src/main/java/org/libsdl/app/SDLSurface.java
@@ -208,6 +208,12 @@ public WindowInsets onApplyWindowInsets(View v, WindowInsets insets) {
WindowInsets.Type.displayCutout());
SDLActivity.onNativeInsetsChanged(combined.left, combined.right, combined.top, combined.bottom);
+
+ if (insets.isVisible(WindowInsets.Type.ime())) {
+ SDLActivity.onNativeScreenKeyboardShown();
+ } else {
+ SDLActivity.onNativeScreenKeyboardHidden();
+ }
}
// Pass these to any child views in case they need them
diff --git a/external/SDL b/external/SDL
index 1fc5001f..ce3cc80a 160000
--- a/external/SDL
+++ b/external/SDL
@@ -1 +1 @@
-Subproject commit 1fc5001f77d50819c66bbe87b7e266fee247973f
+Subproject commit ce3cc80aca6e2d7eab0865ba9e39d3ac5855794a