Screen keyboard text input can be disabled through ChangeAppSettings, also it will hide screen joystick if it's not required, but key amount > 0

This commit is contained in:
pelya
2010-11-05 16:11:18 +02:00
parent 152ac68f89
commit 6b250d3d50
4 changed files with 27 additions and 7 deletions

View File

@@ -259,7 +259,7 @@ class Settings
static void showAdditionalInputConfig(final MainActivity p)
{
if( ! Globals.AppNeedsArrowKeys && ! Globals.AppUsesJoystick )
if( ! ( Globals.AppNeedsArrowKeys || Globals.AppNeedsTextInput || Globals.AppTouchscreenKeyboardKeysAmount > 0 ) && ! Globals.AppUsesJoystick )
{
showAccelerometerConfig(p);
return;
@@ -469,7 +469,8 @@ class Settings
Globals.TouchscreenKeyboardTheme,
Globals.AppTouchscreenKeyboardKeysAmount,
Globals.AppTouchscreenKeyboardKeysAmountAutoFire,
1, 1);
Globals.AppNeedsArrowKeys ? 1 : 0,
Globals.AppNeedsTextInput ? 1 : 0 );
}
SetupTouchscreenKeyboardGraphics(p);
String lang = new String(Locale.getDefault().getLanguage());