v3.2.2: actually fixed iOS multiline, and upped version for iOS only

This commit is contained in:
Evan Debenham
2025-08-25 15:10:28 -04:00
parent c229145119
commit 2f66d4ce10
2 changed files with 5 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ allprojects {
appName = 'Shattered Pixel Dungeon' appName = 'Shattered Pixel Dungeon'
appPackageName = 'com.shatteredpixel.shatteredpixeldungeon' appPackageName = 'com.shatteredpixel.shatteredpixeldungeon'
appVersionCode = 864 appVersionCode = 865
appVersionName = '3.2.2' appVersionName = '3.2.2'
appJavaCompatibility = JavaVersion.VERSION_11 appJavaCompatibility = JavaVersion.VERSION_11

View File

@@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.ios;
import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input; 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.custom.HWMachine;
import com.badlogic.gdx.backends.iosrobovm.objectal.OALSimpleAudio; import com.badlogic.gdx.backends.iosrobovm.objectal.OALSimpleAudio;
import com.badlogic.gdx.graphics.Pixmap; import com.badlogic.gdx.graphics.Pixmap;
@@ -119,12 +120,9 @@ public class IOSPlatformSupport extends PlatformSupport {
} }
public void setOnscreenKeyboardVisible(boolean value, boolean multiline){ public void setOnscreenKeyboardVisible(boolean value, boolean multiline){
if (multiline){ //iOS keyboard says 'done' even with this change, but the behaviour is correct at least
//iOS needs 'email' input type to display enter/return key for multiline =S ((DefaultIOSInput)Gdx.input).setKeyboardCloseOnReturnKey(!multiline);
Gdx.input.setOnscreenKeyboardVisible(value, Input.OnscreenKeyboardType.Email); super.setOnscreenKeyboardVisible(value, multiline);
} else {
super.setOnscreenKeyboardVisible(value, multiline);
}
} }
/* FONT SUPPORT */ /* FONT SUPPORT */