SDL: fixed SDL_ANDROID_GetScreenKeyboardTextInputAsync() API, build.sh -q will rebuild only armeabi-v7a package

This commit is contained in:
Sergii Pylypenko
2017-01-10 20:47:35 +02:00
parent f3f5378693
commit a826416f74
8 changed files with 33 additions and 8 deletions

View File

@@ -791,6 +791,7 @@ public class MainActivity extends Activity
public void showScreenKeyboard(final String oldText)
{
Log.i("SDL", "showScreenKeyboard()");
if(Globals.CompatibilityHacksTextInputEmulatesHwKeyboard)
{
showScreenKeyboardWithoutTextInputField(Globals.TextInputKeyboard);
@@ -798,6 +799,7 @@ public class MainActivity extends Activity
}
if(_screenKeyboard != null)
return;
Log.i("SDL", "showScreenKeyboard() - adding keyboard view");
class simpleKeyListener implements OnKeyListener
{
MainActivity _parent;
@@ -817,6 +819,7 @@ public class MainActivity extends Activity
keyCode == KeyEvent.KEYCODE_BUTTON_3 ||
keyCode == KeyEvent.KEYCODE_BUTTON_4 ))
{
Log.i("SDL", "_parent.hideScreenKeyboard()");
_parent.hideScreenKeyboard();
return true;
}
@@ -904,6 +907,7 @@ public class MainActivity extends Activity
public void hideScreenKeyboard()
{
Log.i("SDL", "hideScreenKeyboard()");
if( keyboardWithoutTextInputShown )
showScreenKeyboardWithoutTextInputField(Globals.TextInputKeyboard);
@@ -918,6 +922,7 @@ public class MainActivity extends Activity
DemoRenderer.nativeTextInput( (int)text.charAt(i), (int)text.codePointAt(i) );
}
}
Log.i("SDL", "hideScreenKeyboard() nativeTextInputFinished()");
DemoRenderer.nativeTextInputFinished();
_inputManager.hideSoftInputFromWindow(_screenKeyboard.getWindowToken(), 0);
_videoLayout.removeView(_screenKeyboard);