1
0
Fork 0
forked from len0rd/rockbox

Cowon D2: Revise some keymaps

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24007 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomer Shalev 2009-12-15 18:56:06 +00:00
parent c48d35927a
commit 9f7579b5b8
4 changed files with 39 additions and 32 deletions

View file

@ -72,8 +72,10 @@ static const struct button_mapping button_context_list[] = {
static const struct button_mapping button_context_tree[] = { static const struct button_mapping button_context_tree[] = {
{ ACTION_TREE_WPS, BUTTON_PLUS|BUTTON_MENU, BUTTON_PLUS }, { ACTION_TREE_WPS, BUTTON_PLUS|BUTTON_MENU, BUTTON_PLUS },
{ ACTION_TREE_WPS, BUTTON_PLUS|BUTTON_MENU, BUTTON_PLUS|BUTTON_REPEAT }, { ACTION_TREE_WPS, BUTTON_PLUS|BUTTON_MENU, BUTTON_PLUS|BUTTON_REPEAT },
{ ACTION_TREE_STOP, BUTTON_POWER|BUTTON_REL, BUTTON_POWER }, { ACTION_TREE_STOP, BUTTON_MINUS|BUTTON_POWER, BUTTON_MINUS },
{ ACTION_TREE_STOP, BUTTON_MINUS|BUTTON_POWER, BUTTON_MINUS|BUTTON_REPEAT },
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST) LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST)
}; /* button_context_tree */ }; /* button_context_tree */

View file

@ -62,7 +62,7 @@ static const struct button_mapping button_context_standard[] = {
{ ACTION_STD_CANCEL, BUTTON_MIDLEFT|BUTTON_REPEAT, BUTTON_NONE }, { ACTION_STD_CANCEL, BUTTON_MIDLEFT|BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_STD_MENU, BUTTON_TOPLEFT, BUTTON_NONE }, { ACTION_STD_MENU, BUTTON_TOPLEFT, BUTTON_NONE },
{ ACTION_STD_QUICKSCREEN, BUTTON_TOPLEFT|BUTTON_REPEAT, BUTTON_NONE }, { ACTION_STD_QUICKSCREEN, BUTTON_BOTTOMLEFT, BUTTON_NONE },
{ ACTION_STD_CONTEXT, BUTTON_CENTER|BUTTON_REPEAT, BUTTON_CENTER }, { ACTION_STD_CONTEXT, BUTTON_CENTER|BUTTON_REPEAT, BUTTON_CENTER },
{ ACTION_STD_CONTEXT, BUTTON_MIDRIGHT|BUTTON_REPEAT, BUTTON_MIDRIGHT }, { ACTION_STD_CONTEXT, BUTTON_MIDRIGHT|BUTTON_REPEAT, BUTTON_MIDRIGHT },
@ -91,8 +91,8 @@ static const struct button_mapping button_context_wps[] = {
{ ACTION_WPS_CONTEXT, BUTTON_CENTER|BUTTON_REPEAT, BUTTON_CENTER }, { ACTION_WPS_CONTEXT, BUTTON_CENTER|BUTTON_REPEAT, BUTTON_CENTER },
{ ACTION_WPS_MENU, BUTTON_TOPLEFT|BUTTON_REL, BUTTON_TOPLEFT }, { ACTION_WPS_MENU, BUTTON_TOPLEFT|BUTTON_REL, BUTTON_TOPLEFT },
{ ACTION_WPS_QUICKSCREEN, BUTTON_TOPLEFT|BUTTON_REPEAT, BUTTON_TOPLEFT }, { ACTION_WPS_QUICKSCREEN, BUTTON_BOTTOMLEFT|BUTTON_REL, BUTTON_BOTTOMLEFT },
{ ACTION_WPS_VIEW_PLAYLIST, BUTTON_BOTTOMLEFT|BUTTON_REL, BUTTON_BOTTOMLEFT }, { ACTION_WPS_VIEW_PLAYLIST, BUTTON_TOPLEFT|BUTTON_REPEAT, BUTTON_TOPLEFT },
{ ACTION_WPS_REC, BUTTON_BOTTOMRIGHT|BUTTON_REPEAT, BUTTON_BOTTOMRIGHT }, { ACTION_WPS_REC, BUTTON_BOTTOMRIGHT|BUTTON_REPEAT, BUTTON_BOTTOMRIGHT },
{ ACTION_WPS_PITCHSCREEN, BUTTON_BOTTOMLEFT|BUTTON_REPEAT, BUTTON_BOTTOMLEFT }, { ACTION_WPS_PITCHSCREEN, BUTTON_BOTTOMLEFT|BUTTON_REPEAT, BUTTON_BOTTOMLEFT },
{ ACTION_WPS_ID3SCREEN, BUTTON_BOTTOMRIGHT|BUTTON_REL, BUTTON_BOTTOMRIGHT }, { ACTION_WPS_ID3SCREEN, BUTTON_BOTTOMRIGHT|BUTTON_REL, BUTTON_BOTTOMRIGHT },
@ -121,16 +121,17 @@ static const struct button_mapping button_context_list[] = {
static const struct button_mapping button_context_tree[] = { static const struct button_mapping button_context_tree[] = {
{ ACTION_TREE_WPS, BUTTON_TOPRIGHT|BUTTON_REL, BUTTON_TOPRIGHT }, { ACTION_TREE_WPS, BUTTON_TOPRIGHT|BUTTON_REL, BUTTON_TOPRIGHT },
{ ACTION_TREE_STOP, BUTTON_BOTTOMRIGHT|BUTTON_REL, BUTTON_BOTTOMRIGHT },
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM2|CONTEXT_CUSTOM|CONTEXT_TREE) LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM2|CONTEXT_CUSTOM|CONTEXT_TREE)
}; /* button_context_tree */ }; /* button_context_tree */
static const struct button_mapping button_context_listtree_scroll_with_combo[] = { static const struct button_mapping button_context_listtree_scroll_with_combo[] = {
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM2|CONTEXT_CUSTOM|CONTEXT_TREE), LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM|CONTEXT_TREE),
}; };
static const struct button_mapping button_context_listtree_scroll_without_combo[] = { static const struct button_mapping button_context_listtree_scroll_without_combo[] = {
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM2|CONTEXT_CUSTOM|CONTEXT_TREE), LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM|CONTEXT_TREE),
}; };
static const struct button_mapping button_context_settings[] = { static const struct button_mapping button_context_settings[] = {
@ -182,7 +183,7 @@ static const struct button_mapping button_context_eq[] = {
/* Bookmark Screen */ /* Bookmark Screen */
static const struct button_mapping button_context_bmark[] = { static const struct button_mapping button_context_bmark[] = {
{ ACTION_BMS_DELETE, BUTTON_BOTTOMLEFT, BUTTON_NONE }, { ACTION_BMS_DELETE, BUTTON_BOTTOMRIGHT, BUTTON_NONE },
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM2|CONTEXT_BOOKMARKSCREEN), LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM2|CONTEXT_BOOKMARKSCREEN),
}; /* button_context_bmark */ }; /* button_context_bmark */

View file

@ -14,18 +14,18 @@
\newcommand{\ActionStdCancel}{\ButtonPower{} or \TouchActionStdCancel} \newcommand{\ActionStdCancel}{\ButtonPower{} or \TouchActionStdCancel}
\newcommand{\ActionStdContext}{Long \ButtonMenu{} or \TouchActionStdContext} \newcommand{\ActionStdContext}{Long \ButtonMenu{} or \TouchActionStdContext}
\newcommand{\ActionStdQuickScreen}{\TouchActionStdQuickScreen} \newcommand{\ActionStdQuickScreen}{\TouchActionStdQuickScreen}
\newcommand{\ActionQuickScreenExit}{\TouchActionQuickScreenExit} \newcommand{\ActionQuickScreenExit}{\ButtonPower{} or \ButtonMenu{} or \TouchActionQuickScreenExit}
\newcommand{\ActionStdMenu}{\TouchActionStdMenu} \newcommand{\ActionStdMenu}{\TouchActionStdMenu}
\newcommand{\ActionStdOk}{\TouchActionStdOk} \newcommand{\ActionStdOk}{\ButtonMenu{} or \TouchActionStdOk}
\newcommand{\ActionStdRec}{\TouchActionStdRec} %\newcommand{\ActionStdRec}{\TouchActionStdRec}
\newcommand{\ActionStdUsbCharge}{\TouchActionStdUsbCharge} %\newcommand{\ActionStdUsbCharge}{\TouchActionStdUsbCharge}
%Button actions, wps context %Button actions, wps context
\newcommand{\ActionWpsPlay}{\TouchActionWpsPlay} \newcommand{\ActionWpsPlay}{\TouchActionWpsPlay}
\newcommand{\ActionWpsSkipNext}{\TouchActionWpsSkipNext} \newcommand{\ActionWpsSkipNext}{\TouchActionWpsSkipNext}
\newcommand{\ActionWpsSeekFwd}{\TouchActionWpsSeekFwd}
\newcommand{\ActionWpsSkipPrev}{\TouchActionWpsSkipPrev} \newcommand{\ActionWpsSkipPrev}{\TouchActionWpsSkipPrev}
\newcommand{\ActionWpsSeekBack}{\TouchActionWpsSeekBack} \newcommand{\ActionWpsSeekBack}{\TouchActionWpsSeekBack}
\newcommand{\ActionWpsSeekFwd}{\TouchActionWpsSeekFwd}
\newcommand{\ActionWpsStop}{\TouchActionWpsStop} \newcommand{\ActionWpsStop}{\TouchActionWpsStop}
\newcommand{\ActionWpsVolDown}{\ButtonMinus{} or \TouchActionWpsVolDown} \newcommand{\ActionWpsVolDown}{\ButtonMinus{} or \TouchActionWpsVolDown}
@ -43,17 +43,17 @@
\newcommand{\ActionWpsAbReset}{\TouchActionWpsAbReset} \newcommand{\ActionWpsAbReset}{\TouchActionWpsAbReset}
%Button actions, tree context %Button actions, tree context
\newcommand{\ActionTreeWps}{\ButtonPlus} \newcommand{\ActionTreeWps}{\ButtonPlus{}+\ButtonMenu{} or \TouchActionTreeWps}
\newcommand{\ActionTreeStop}{} \newcommand{\ActionTreeStop}{\ButtonMinus{}+\ButtonPower{} or \TouchActionTreeStop}
\newcommand{\ActionTreeEnter}{} \newcommand{\ActionTreeEnter}{\ButtonMenu{} or \TouchActionTreeEnter}
\newcommand{\ActionTreeParentDirectory}{} \newcommand{\ActionTreeParentDirectory}{\TouchActionTreeParentDirectory}
%Button actions, YesNo context %Button actions, YesNo context
\newcommand{\ActionYesNoAccept}{\ButtonMenu} \newcommand{\ActionYesNoAccept}{\ButtonMenu{} or \TouchActionYesNoAccept}
%Button actions, Setting context %Button actions, Setting context
\newcommand{\ActionSettingInc}{\ButtonPlus} \newcommand{\ActionSettingInc}{\TouchActionSettingInc{} or \ButtonPlus}
\newcommand{\ActionSettingDec}{\ButtonMinus} \newcommand{\ActionSettingDec}{\TouchActionSettingDec{} or \ButtonMinus}
%Button actions, Virtual Keyboard Context %Button actions, Virtual Keyboard Context
\newcommand{\ActionKbdLeft}{\TouchActionKbdLeft} \newcommand{\ActionKbdLeft}{\TouchActionKbdLeft}
@ -78,12 +78,14 @@
\newcommand{\ActionPsNudgeRight}{\TouchActionPsNudgeRight} \newcommand{\ActionPsNudgeRight}{\TouchActionPsNudgeRight}
\newcommand{\ActionPsReset}{\TouchActionPsReset} \newcommand{\ActionPsReset}{\TouchActionPsReset}
\newcommand{\ActionPsExit}{\ButtonPower{} or \TouchActionPsExit} \newcommand{\ActionPsExit}{\ButtonPower{} or \TouchActionPsExit}
\newcommand{\ActionPsSlower}{\TouchActionPsSlower}
\newcommand{\ActionPsFaster}{\TouchActionPsFaster}
%Button actions, FM radio context %Button actions, FM radio context
\newcommand{\ActionFMPreset}{Long \ButtonMenu{} or \TouchActionFMPreset} \newcommand{\ActionFMPreset}{Long \ButtonMenu{} or \TouchActionFMPreset}
\newcommand{\ActionFMMenu}{\ButtonMenu{} or \TouchActionFMMenu} \newcommand{\ActionFMMenu}{\ButtonMenu{} or \TouchActionFMMenu}
\newcommand{\ActionFMMode}{\TouchActionFMMode} \newcommand{\ActionFMMode}{\TouchActionFMMode}
\newcommand{\ActionFMStop}{\ButtonPower} \newcommand{\ActionFMStop}{\TouchActionFMStop{} or \ButtonPower}
\newcommand{\ActionFMExit}{\TouchActionFMExit} \newcommand{\ActionFMExit}{\TouchActionFMExit}
\newcommand{\ActionFMPlay}{\TouchActionFMPlay} \newcommand{\ActionFMPlay}{\TouchActionFMPlay}
\newcommand{\ActionFMSettingsInc}{\ActionSettingInc} \newcommand{\ActionFMSettingsInc}{\ActionSettingInc}

View file

@ -17,8 +17,8 @@
\newcommand{\TouchActionStdNextRepeat}{Long \TouchBottomMiddle} \newcommand{\TouchActionStdNextRepeat}{Long \TouchBottomMiddle}
\newcommand{\TouchActionStdCancel}{\TouchMidLeft} \newcommand{\TouchActionStdCancel}{\TouchMidLeft}
\newcommand{\TouchActionStdContext}{Long \TouchCenter{} or Long \TouchMidRight} \newcommand{\TouchActionStdContext}{Long \TouchCenter{} or Long \TouchMidRight}
\newcommand{\TouchActionStdQuickScreen}{Long \TouchTopLeft} \newcommand{\TouchActionStdQuickScreen}{\TouchBottomLeft}
\newcommand{\TouchActionQuickScreenExit}{} \newcommand{\TouchActionQuickScreenExit}{\TouchActionStdQuickScreen{} or \TouchCenter}
\newcommand{\TouchActionStdMenu}{\TouchTopLeft} \newcommand{\TouchActionStdMenu}{\TouchTopLeft}
\newcommand{\TouchActionStdOk}{\TouchCenter{} or \TouchMidRight} \newcommand{\TouchActionStdOk}{\TouchCenter{} or \TouchMidRight}
\newcommand{\TouchActionStdRec}{} \newcommand{\TouchActionStdRec}{}
@ -35,7 +35,7 @@
\newcommand{\TouchActionWpsVolDown}{\TouchBottomMiddle} \newcommand{\TouchActionWpsVolDown}{\TouchBottomMiddle}
\newcommand{\TouchActionWpsVolUp}{\TouchTopMiddle} \newcommand{\TouchActionWpsVolUp}{\TouchTopMiddle}
\newcommand{\TouchActionWpsQuickScreen}{Long \TouchTopLeft} \newcommand{\TouchActionWpsQuickScreen}{\TouchBottomLeft}
\newcommand{\TouchActionWpsMenu}{\TouchTopLeft} \newcommand{\TouchActionWpsMenu}{\TouchTopLeft}
\newcommand{\TouchActionWpsContext}{Long \TouchCenter} \newcommand{\TouchActionWpsContext}{Long \TouchCenter}
\newcommand{\TouchActionWpsBrowse}{\TouchCenter} \newcommand{\TouchActionWpsBrowse}{\TouchCenter}
@ -48,9 +48,9 @@
%Button actions, tree context %Button actions, tree context
\newcommand{\TouchActionTreeWps}{\TouchTopRight} \newcommand{\TouchActionTreeWps}{\TouchTopRight}
\newcommand{\TouchActionTreeStop}{} \newcommand{\TouchActionTreeStop}{\TouchBottomRight}
\newcommand{\TouchActionTreeEnter}{} \newcommand{\TouchActionTreeEnter}{\TouchCenter{} or \TouchMidRight}
\newcommand{\TouchActionTreeParentDirectory}{} \newcommand{\TouchActionTreeParentDirectory}{\TouchMidLeft}
%Button actions, YesNo context %Button actions, YesNo context
\newcommand{\TouchActionYesNoAccept}{\TouchTopRight} \newcommand{\TouchActionYesNoAccept}{\TouchTopRight}
@ -82,6 +82,8 @@
\newcommand{\TouchActionPsNudgeRight}{\TouchMidRight} \newcommand{\TouchActionPsNudgeRight}{\TouchMidRight}
\newcommand{\TouchActionPsReset}{\TouchCenter} \newcommand{\TouchActionPsReset}{\TouchCenter}
\newcommand{\TouchActionPsExit}{\TouchTopLeft} \newcommand{\TouchActionPsExit}{\TouchTopLeft}
\newcommand{\TouchActionPsSlower}{Long \TouchMidLeft}
\newcommand{\TouchActionPsFaster}{Long \TouchMidRight}
%Button actions, Recording screen context %Button actions, Recording screen context
\newcommand{\TouchActionRecPause}{} \newcommand{\TouchActionRecPause}{}
@ -100,11 +102,11 @@
\newcommand{\TouchActionFMStop}{\TouchBottomRight} \newcommand{\TouchActionFMStop}{\TouchBottomRight}
\newcommand{\TouchActionFMExit}{\TouchTopLeft} \newcommand{\TouchActionFMExit}{\TouchTopLeft}
\newcommand{\TouchActionFMPlay}{\TouchTopRight} \newcommand{\TouchActionFMPlay}{\TouchTopRight}
\newcommand{\TouchActionFMSettingsInc}{} \newcommand{\TouchActionFMSettingsInc}{\TouchActionSettingInc}
\newcommand{\TouchActionFMSettingsDec}{} \newcommand{\TouchActionFMSettingsDec}{\TouchActionSettingDec}
\newcommand{\TouchActionFMPrev}{\TouchActionRecSettingsInc} \newcommand{\TouchActionFMPrev}{\TouchMidLeft}
\newcommand{\TouchActionFMNext}{\TouchActionRecSettingsDec} \newcommand{\TouchActionFMNext}{\TouchMidRight}
%Button actions, Bookmark screen context %Button actions, Bookmark screen context
\newcommand{\TouchActionBmDelete}{\TouchBottomLeft} \newcommand{\TouchActionBmDelete}{\TouchBottomRight}