SDL: account for rounded screen corners for text input

This commit is contained in:
Sergii Pylypenko
2018-12-13 20:49:08 +02:00
parent 63178dd22b
commit da55d86723
3 changed files with 4 additions and 4 deletions

View File

@@ -871,6 +871,8 @@ public class MainActivity extends Activity
screenKeyboard.setTextColor(this.getResources().getColor(android.R.color.background_light));
if( isRunningOnOUYA() && Globals.TvBorders )
screenKeyboard.setPadding(100, 100, 100, 100); // Bad bad HDMI TVs all have cropped borders
else
screenKeyboard.setPadding(20, 20, 20, 20); // Account for rounded screen corners
_screenKeyboard = screenKeyboard;
_videoLayout.addView(_screenKeyboard);
//_screenKeyboard.setKeyListener(new TextKeyListener(TextKeyListener.Capitalize.NONE, false));