From a116389814811b64b23a8c54ef5f38e64c1e2e6c Mon Sep 17 00:00:00 2001 From: iwgeric Date: Fri, 12 Dec 2014 13:00:05 -0500 Subject: [PATCH] Forgot to add isSimulateKeyboard to TouchInput interface. --- .../src/main/java/com/jme3/input/android/AndroidInput.java | 4 ++++ jme3-core/src/main/java/com/jme3/input/TouchInput.java | 5 +++++ .../src/main/java/com/jme3/input/ios/IosInputHandler.java | 4 ++++ 3 files changed, 13 insertions(+) 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;