remove showVirtualKeyboard from TouchInput

experimental
iwgeric 10 years ago
parent 7040e32cc4
commit 249f62fe95
  1. 4
      jme3-android/src/main/java/com/jme3/input/android/AndroidInput.java
  2. 7
      jme3-android/src/main/java/com/jme3/input/android/AndroidInputHandler.java
  3. 18
      jme3-android/src/main/java/com/jme3/input/android/AndroidKeyHandler.java
  4. 6
      jme3-core/src/main/java/com/jme3/input/TouchInput.java
  5. 5
      jme3-ios/src/main/java/com/jme3/input/ios/IosInputHandler.java

@ -679,8 +679,4 @@ public class AndroidInput implements
return mouseEventsEnabled; return mouseEventsEnabled;
} }
public void showVirtualKeyboard(boolean visible) {
throw new UnsupportedOperationException("Not supported yet.");
}
} }

@ -263,11 +263,4 @@ public class AndroidInputHandler implements TouchInput {
this.dontSendHistory = dontSendHistory; this.dontSendHistory = dontSendHistory;
} }
public void showVirtualKeyboard(boolean visible) {
if (keyHandler != null) {
keyHandler.showVirtualKeyboard(visible);
}
}
} }

@ -135,22 +135,4 @@ public class AndroidKeyHandler implements View.OnKeyListener {
} }
} }
public void showVirtualKeyboard (final boolean visible) {
androidInput.getView().getHandler().post(new Runnable() {
public void run() {
InputMethodManager manager =
(InputMethodManager)androidInput.getView().getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
if (visible) {
manager.showSoftInput(androidInput.getView(), 0);
sendKeyEvents = true;
} else {
manager.hideSoftInputFromWindow(androidInput.getView().getWindowToken(), 0);
sendKeyEvents = false;
}
}
});
}
} }

@ -100,10 +100,4 @@ public interface TouchInput extends Input {
*/ */
public void setOmitHistoricEvents(boolean dontSendHistory); public void setOmitHistoricEvents(boolean dontSendHistory);
/**
* Displays or hides the onscreen soft keyboard
* @param visible
*/
public void showVirtualKeyboard (final boolean visible);
} }

@ -117,11 +117,6 @@ public class IosInputHandler implements TouchInput {
this.dontSendHistory = dontSendHistory; this.dontSendHistory = dontSendHistory;
} }
@Override
public void showVirtualKeyboard(boolean visible) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
// ---------------- // ----------------
public void loadSettings(AppSettings settings) { public void loadSettings(AppSettings settings) {

Loading…
Cancel
Save