Forgot to add isSimulateKeyboard to TouchInput interface.

This commit is contained in:
iwgeric 2014-12-12 13:00:05 -05:00
parent 1ed1463476
commit a116389814
3 changed files with 13 additions and 0 deletions

View File

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

View File

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

View File

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