v0.7.5: decoupled android-based text input from SPD-classes

This commit is contained in:
Evan Debenham
2019-09-27 16:27:46 -04:00
parent f37186ba3c
commit 0724717abf
4 changed files with 32 additions and 9 deletions

View File

@@ -73,7 +73,7 @@ public class Game implements ApplicationListener {
protected static InputHandler inputHandler;
protected static PlatformSupport platform;
public static PlatformSupport platform;
public Game(Class<? extends Scene> c, PlatformSupport platform) {
sceneClass = c;

View File

@@ -26,5 +26,14 @@ public abstract class PlatformSupport {
public abstract void updateDisplaySize();
public abstract void updateSystemUI();
//FIXME this is currently used because no platform-agnostic text input has been implemented.
//should look into doing that using either plain openGL or Libgdx's libraries
public abstract void promptTextInput( String title, String hintText, int maxLen, boolean multiLine,
String posTxt, String negTxt, TextCallback callback);
public static abstract class TextCallback {
public abstract void onSelect( boolean positive, String text );
}
}