From 2f66d4ce101ff359c1ba05399d8f75fb8433ba47 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 25 Aug 2025 15:10:28 -0400 Subject: [PATCH] v3.2.2: actually fixed iOS multiline, and upped version for iOS only --- build.gradle | 2 +- .../shatteredpixeldungeon/ios/IOSPlatformSupport.java | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index 696c47e87..b9858b63b 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ allprojects { appName = 'Shattered Pixel Dungeon' appPackageName = 'com.shatteredpixel.shatteredpixeldungeon' - appVersionCode = 864 + appVersionCode = 865 appVersionName = '3.2.2' appJavaCompatibility = JavaVersion.VERSION_11 diff --git a/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSPlatformSupport.java b/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSPlatformSupport.java index 97558af83..904cb7a27 100644 --- a/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSPlatformSupport.java +++ b/ios/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ios/IOSPlatformSupport.java @@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.ios; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; +import com.badlogic.gdx.backends.iosrobovm.DefaultIOSInput; import com.badlogic.gdx.backends.iosrobovm.custom.HWMachine; import com.badlogic.gdx.backends.iosrobovm.objectal.OALSimpleAudio; import com.badlogic.gdx.graphics.Pixmap; @@ -119,12 +120,9 @@ public class IOSPlatformSupport extends PlatformSupport { } public void setOnscreenKeyboardVisible(boolean value, boolean multiline){ - if (multiline){ - //iOS needs 'email' input type to display enter/return key for multiline =S - Gdx.input.setOnscreenKeyboardVisible(value, Input.OnscreenKeyboardType.Email); - } else { - super.setOnscreenKeyboardVisible(value, multiline); - } + //iOS keyboard says 'done' even with this change, but the behaviour is correct at least + ((DefaultIOSInput)Gdx.input).setKeyboardCloseOnReturnKey(!multiline); + super.setOnscreenKeyboardVisible(value, multiline); } /* FONT SUPPORT */