Forgot to add isSimulateKeyboard to TouchInput interface.

experimental
iwgeric 10 years ago
parent 1ed1463476
commit a116389814
  1. 4
      jme3-android/src/main/java/com/jme3/input/android/AndroidInput.java
  2. 5
      jme3-core/src/main/java/com/jme3/input/TouchInput.java
  3. 4
      jme3-ios/src/main/java/com/jme3/input/ios/IosInputHandler.java

@ -679,4 +679,8 @@ public class AndroidInput implements
return mouseEventsEnabled;
}
public boolean isSimulateKeyboard() {
return keyboardEventsEnabled;
}
}

@ -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 <a href="http://developer.android.com/reference/android/view/MotionEvent.html#getHistoricalX%28int,%20int%29">

@ -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;

Loading…
Cancel
Save