v0.7.5: decoupled android-based text input from SPD-classes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user