diff --git a/jme3-android/src/main/java/com/jme3/input/android/AndroidInput.java b/jme3-android/src/main/java/com/jme3/input/android/AndroidInput.java index b0df6a168..02fef6b0f 100644 --- a/jme3-android/src/main/java/com/jme3/input/android/AndroidInput.java +++ b/jme3-android/src/main/java/com/jme3/input/android/AndroidInput.java @@ -679,4 +679,8 @@ public class AndroidInput implements return mouseEventsEnabled; } + public boolean isSimulateKeyboard() { + return keyboardEventsEnabled; + } + } diff --git a/jme3-core/src/main/java/com/jme3/input/TouchInput.java b/jme3-core/src/main/java/com/jme3/input/TouchInput.java index 8dcc824db..3a1dadbde 100644 --- a/jme3-core/src/main/java/com/jme3/input/TouchInput.java +++ b/jme3-core/src/main/java/com/jme3/input/TouchInput.java @@ -92,6 +92,11 @@ public interface TouchInput extends Input { */ public void setSimulateKeyboard(boolean simulate); + /** + * @return true if key event simulation is enabled, false otherwise. + */ + public boolean isSimulateKeyboard(); + /** * Set if historic android events should be transmitted, can be used to get better performance and less mem * @see diff --git a/jme3-ios/src/main/java/com/jme3/input/ios/IosInputHandler.java b/jme3-ios/src/main/java/com/jme3/input/ios/IosInputHandler.java index 057b0e429..be28e6689 100644 --- a/jme3-ios/src/main/java/com/jme3/input/ios/IosInputHandler.java +++ b/jme3-ios/src/main/java/com/jme3/input/ios/IosInputHandler.java @@ -112,6 +112,10 @@ public class IosInputHandler implements TouchInput { this.keyboardEventsEnabled = simulate; } + public boolean isSimulateKeyboard() { + return keyboardEventsEnabled; + } + @Override public void setOmitHistoricEvents(boolean dontSendHistory) { this.dontSendHistory = dontSendHistory;