diff --git a/res/values/strings.xml b/res/values/strings.xml index 80d1d29..143ab6c 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -46,7 +46,7 @@ Large LCD screen Portrait mode only Minimal controls -Also, easy shortcut: touch the LCD +You can also enable it in the menu Hide the status bar Full screen mode Autoscale touch controls @@ -59,4 +59,5 @@ Emulate an HP48S (Need App Restart !) HP48 Bitmap Skin Restore the previous bitmap skin (48G mode only !) +Touch the screen to show system options diff --git a/src/org/ab/x48/X48.java b/src/org/ab/x48/X48.java index 95017f8..47a9b1e 100644 --- a/src/org/ab/x48/X48.java +++ b/src/org/ab/x48/X48.java @@ -30,6 +30,7 @@ public class X48 extends Activity { static final private int SETTINGS_ID = Menu.FIRST +5 ; static final private int QUIT_ID = Menu.FIRST +3 ; static final private int RESET_ID = Menu.FIRST +4 ; + static final private int KEYBLITE_ID = Menu.FIRST +6 ; static final private int ROM_ID = 123; @@ -64,6 +65,8 @@ public class X48 extends Activity { mainView.resume(); } + + public void checkPrefs() { SharedPreferences mPrefs = PreferenceManager.getDefaultSharedPreferences(this); bitmapSkin = mPrefs.getBoolean("bitmapskin", false); @@ -162,6 +165,8 @@ public class X48 extends Activity { // given them shortcuts. //menu.add(0, RESET_ID, 0, R.string.reset); + if (mainView.currentOrientation == Configuration.ORIENTATION_PORTRAIT) + menu.add(0, KEYBLITE_ID, 0, R.string.show_lite_keyb); menu.add(0, SAVE_ID, 0, R.string.save_state); menu.add(0, LOAD_ID, 0, R.string.load_prog); menu.add(0, SETTINGS_ID, 0, R.string.settings); @@ -179,6 +184,9 @@ public class X48 extends Activity { @Override public boolean onMenuItemSelected(int featureId, MenuItem item) { switch (item.getItemId()) { + case KEYBLITE_ID: + changeKeybLite(); + return true; case RESET_ID: AssetUtil.copyAsset(getResources().getAssets(), true); //stopHPEmulator();