v3.2.2: actually fixed iOS multiline, and upped version for iOS only
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user