diff options
author | Chris Apers | 2006-06-05 19:21:51 +0000 |
---|---|---|
committer | Chris Apers | 2006-06-05 19:21:51 +0000 |
commit | e51d5f3767fcb931d776058f33490e58f360db96 (patch) | |
tree | 8193317172214c522590e3cb09dbe23f4cd80360 /backends/PalmOS | |
parent | f54bf6759fe437400c6115e9d9571f2aa3c62bc4 (diff) | |
download | scummvm-rg350-e51d5f3767fcb931d776058f33490e58f360db96.tar.gz scummvm-rg350-e51d5f3767fcb931d776058f33490e58f360db96.tar.bz2 scummvm-rg350-e51d5f3767fcb931d776058f33490e58f360db96.zip |
- Added arrow keys option
- Hide std palette ootion on ARM devices
svn-id: r22939
Diffstat (limited to 'backends/PalmOS')
-rw-r--r-- | backends/PalmOS/Src/launcher/forms/formMisc.cpp | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/backends/PalmOS/Src/launcher/forms/formMisc.cpp b/backends/PalmOS/Src/launcher/forms/formMisc.cpp index afa566f49b..9b4009294c 100644 --- a/backends/PalmOS/Src/launcher/forms/formMisc.cpp +++ b/backends/PalmOS/Src/launcher/forms/formMisc.cpp @@ -80,19 +80,24 @@ static void PalmOSTabSave() { gPrefs->advancedMode = CtlGetValue(cckP[3]); } + if (!OPTIONS_TST(kOptDeviceARM)) { + cckP[2] = (ControlType *)GetObjectPtr(TabMiscPalmOSStdPaletteCheckbox); + gPrefs->stdPalette = CtlGetValue(cckP[2]); + } + cckP[0] = (ControlType *)GetObjectPtr(TabMiscPalmOSVibratorCheckbox); cckP[1] = (ControlType *)GetObjectPtr(TabMiscPalmOSNoAutoOffCheckbox); - cckP[2] = (ControlType *)GetObjectPtr(TabMiscPalmOSStdPaletteCheckbox); cckP[4] = (ControlType *)GetObjectPtr(TabMiscPalmOSLargerStackCheckbox); cckP[5] = (ControlType *)GetObjectPtr(TabMiscPalmOSExitLauncherCheckbox); cckP[6] = (ControlType *)GetObjectPtr(TabMiscPalmOSStylusClickCheckbox); + cckP[7] = (ControlType *)GetObjectPtr(TabMiscPalmOSArrowCheckbox); gPrefs->vibrator = CtlGetValue(cckP[0]); gPrefs->autoOff = !CtlGetValue(cckP[1]); - gPrefs->stdPalette = CtlGetValue(cckP[2]); gPrefs->setStack = CtlGetValue(cckP[4]); gPrefs->exitLauncher = CtlGetValue(cckP[5]); gPrefs->stylusClick = !CtlGetValue(cckP[6]); + gPrefs->arrowKeys = CtlGetValue(cckP[7]); } static void ExtsTabSave() { @@ -143,12 +148,15 @@ static void PalmOSTabInit() { if (OPTIONS_TST(kOptDeviceARM) && !OPTIONS_TST(kOptDeviceZodiac)) CtlSetValue((ControlType *)GetObjectPtr(TabMiscPalmOSAdvancedCheckbox), gPrefs->advancedMode); + if (!OPTIONS_TST(kOptDeviceARM)) + CtlSetValue((ControlType *)GetObjectPtr(TabMiscPalmOSStdPaletteCheckbox), gPrefs->stdPalette); + CtlSetValue((ControlType *)GetObjectPtr(TabMiscPalmOSExitLauncherCheckbox), gPrefs->exitLauncher); CtlSetValue((ControlType *)GetObjectPtr(TabMiscPalmOSLargerStackCheckbox), gPrefs->setStack); CtlSetValue((ControlType *)GetObjectPtr(TabMiscPalmOSVibratorCheckbox), gPrefs->vibrator); CtlSetValue((ControlType *)GetObjectPtr(TabMiscPalmOSNoAutoOffCheckbox), !gPrefs->autoOff); - CtlSetValue((ControlType *)GetObjectPtr(TabMiscPalmOSStdPaletteCheckbox), gPrefs->stdPalette); CtlSetValue((ControlType *)GetObjectPtr(TabMiscPalmOSStylusClickCheckbox), !gPrefs->stylusClick); + CtlSetValue((ControlType *)GetObjectPtr(TabMiscPalmOSArrowCheckbox), gPrefs->arrowKeys); } static void ExtsTabInit() { @@ -182,9 +190,12 @@ static void MiscFormInit() { TabAddContent(&frmP, tabP, "ScummVM", TabMiscScummVMForm); TabAddContent(&frmP, tabP, "More ...", TabMiscExtsForm); - if (!OPTIONS_TST(kOptDeviceARM) || OPTIONS_TST(kOptDeviceZodiac)) { + if (!OPTIONS_TST(kOptDeviceARM) || OPTIONS_TST(kOptDeviceZodiac)) FrmRemoveObject(&frmP, FrmGetObjectIndex(frmP, TabMiscPalmOSAdvancedCheckbox)); - } + + if (OPTIONS_TST(kOptDeviceARM)) + FrmRemoveObject(&frmP, FrmGetObjectIndex(frmP, TabMiscPalmOSStdPaletteCheckbox)); + if (!OPTIONS_TST(kOptGoLcdAPI)) { FrmRemoveObject(&frmP, FrmGetObjectIndex(frmP, TabMiscExtsGolcdCheckbox)); // move lightspeed |