From e090bea1fac8f9f0d243d3c5e974b3f30b8cfff3 Mon Sep 17 00:00:00 2001 From: Marianne Arnold Date: Sat, 29 Nov 2008 11:04:02 +0000 Subject: Manual: Platform files - split out the button and action commands from the platform files into separate keymap files. This avoids code duplication for targets which share the same keymap (M5,X5; the Archos Recorders and Ondios etc.). Before, someone would have to change a few files if e.g. something changed for the Ipod 4G pad, now only the keymap-ipod4g.tex has to be edited. The shared keymap files contain all possibly needed commands, for instance the radio screen actions in keymap-mx5.tex which is only used for the X5 not the M5. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19262 a1c6a512-1295-4272-9138-f99709370657 --- manual/platform/m5.tex | 80 ++------------------------------------------------ 1 file changed, 2 insertions(+), 78 deletions(-) (limited to 'manual/platform/m5.tex') diff --git a/manual/platform/m5.tex b/manual/platform/m5.tex index 8bed4c97b7..7129d36ec3 100644 --- a/manual/platform/m5.tex +++ b/manual/platform/m5.tex @@ -21,81 +21,5 @@ \newcommand{\screenshotsize}{4cm} \newcommand{\disk}{hard disk} -\newcommand{\ButtonLeft}{\btnfnt{Left}} -\newcommand{\ButtonRight}{\btnfnt{Right}} -\newcommand{\ButtonUp}{\btnfnt{Up}} -\newcommand{\ButtonDown}{\btnfnt{Down}} -\newcommand{\ButtonSelect}{\btnfnt{Select}} -\newcommand{\ButtonPower}{\btnfnt{Power}} -\newcommand{\ButtonRec}{\btnfnt{Rec}} -\newcommand{\ButtonPlay}{\btnfnt{Play}} -\newcommand{\ButtonHold}{\btnfnt{Hold}} - -%Button actions, standard context -\newcommand{\ActionStdPrev}{\ButtonUp} -\newcommand{\ActionStdPrevRepeat}{Long \ButtonUp} -\newcommand{\ActionStdNext}{\ButtonDown} -\newcommand{\ActionStdNextRepeat}{Long \ButtonDown} -\newcommand{\ActionStdCancel}{\ButtonLeft{} or \ButtonPower} -\newcommand{\ActionStdContext}{Long \ButtonSelect} -\newcommand{\ActionStdQuickScreen}{Long \ButtonRec} -\newcommand{\ActionQuickScreenExit}{\ButtonRec} -\newcommand{\ActionStdMenu}{\ButtonRec} -\newcommand{\ActionStdOk}{\ButtonSelect, \ButtonRight{} or \ButtonPlay} - -%Button actions, wps context -\newcommand{\ActionWpsPlay}{\ButtonPlay} -\newcommand{\ActionWpsStop}{Long \ButtonPlay} -\newcommand{\ActionWpsSkipNext}{\ButtonRight} -\newcommand{\ActionWpsSkipPrev}{\ButtonLeft} -\newcommand{\ActionWpsSeekBack}{Long \ButtonLeft} -\newcommand{\ActionWpsSeekFwd}{Long \ButtonRight} -\newcommand{\ActionWpsVolDown}{\ButtonDown} -\newcommand{\ActionWpsVolUp}{\ButtonUp} -\newcommand{\ActionWpsQuickScreen}{Long \ButtonRec} -\newcommand{\ActionWpsMenu}{\ButtonRec} -\newcommand{\ActionWpsContext}{Long \ButtonSelect} -\newcommand{\ActionWpsBrowse}{\ButtonSelect} - -%Button actions, tree context -\newcommand{\ActionTreeWps}{\ButtonPlay} -\newcommand{\ActionTreeStop}{Long \ButtonPlay} -\newcommand{\ActionTreeEnter}{\ButtonSelect{} or \ButtonRight} -\newcommand{\ActionTreeParentDirectory}{\ButtonLeft} - -%Button actions, YesNo context -\newcommand{\ActionYesNoAccept}{\ButtonSelect} - -%Button actions, Setting context -\newcommand{\ActionSettingInc}{\ButtonUp} -\newcommand{\ActionSettingDec}{\ButtonDown} - -%Button actions, Virtual Keyboard Context -\newcommand{\ActionKbdLeft}{\ButtonLeft} -\newcommand{\ActionKbdRight}{\ButtonRight} -\newcommand{\ActionKbdUp}{\ButtonUp} -\newcommand{\ActionKbdDown}{\ButtonDown} -\newcommand{\ActionKbdSelect}{\ButtonSelect} -\newcommand{\ActionKbdDone}{\ButtonPlay} -\newcommand{\ActionKbdAbort}{\ButtonRec} - -%Button actions, Pitch Screen context -\newcommand{\ActionPsToggleMode}{\ButtonSelect} -\newcommand{\ActionPsIncSmall}{\ButtonUp} -\newcommand{\ActionPsIncBig}{Long \ButtonUp} -\newcommand{\ActionPsDecSmall}{\ButtonDown} -\newcommand{\ActionPsDecBig}{Long \ButtonDown} -\newcommand{\ActionPsNudgeLeft}{\ButtonLeft} -\newcommand{\ActionPsNudgeRight}{\ButtonRight} -\newcommand{\ActionPsReset}{\ButtonPower} -\newcommand{\ActionPsExit}{\ButtonPlay} - -%Button actions, Recording screen context -\newcommand{\ActionRecPause}{\ButtonPlay} -\newcommand{\ActionRecNewfile}{\ButtonRec} -\newcommand{\ActionRecSettingsInc}{\ButtonRight} -\newcommand{\ActionRecSettingsDec}{\ButtonLeft} -\newcommand{\ActionRecPrev}{\ButtonUp} -\newcommand{\ActionRecNext}{\ButtonDown} -\newcommand{\ActionRecMenu}{Long \ButtonRec} -\newcommand{\ActionRecExit}{Long \ButtonPlay} +% link to external keymap file +\input{platform/keymap-mx5.tex} -- cgit