From 66f0cb2f6096e31de09b154e2bc11a9cb4d9df73 Mon Sep 17 00:00:00 2001 From: Paul Louden Date: Sun, 4 Nov 2007 18:01:34 +0000 Subject: [PATCH] FS#7232 - Fix some inconsistencies within the Sansa keymap. Makes it easier to use with one thumb, a little more symmetrical for lefties, and a little more consistent both within the scope of the e200 target and cross-target. Manual should be updated with the changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15461 a1c6a512-1295-4272-9138-f99709370657 --- apps/keymaps/keymap-e200.c | 14 +++++++------- manual/platform/e200.tex | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/keymaps/keymap-e200.c b/apps/keymaps/keymap-e200.c index c9a6293470..8a4b4b6b90 100644 --- a/apps/keymaps/keymap-e200.c +++ b/apps/keymaps/keymap-e200.c @@ -36,15 +36,15 @@ static const struct button_mapping button_context_standard[] = { { ACTION_STD_NEXT, BUTTON_SCROLL_DOWN, BUTTON_NONE }, { ACTION_STD_NEXTREPEAT, BUTTON_SCROLL_DOWN|BUTTON_REPEAT, BUTTON_NONE }, - { ACTION_STD_MENU, BUTTON_POWER|BUTTON_REL, BUTTON_POWER }, + { ACTION_STD_MENU, BUTTON_DOWN|BUTTON_REL, BUTTON_DOWN }, { ACTION_STD_REC, BUTTON_REC|BUTTON_REPEAT, BUTTON_NONE }, { ACTION_STD_OK, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT }, { ACTION_STD_OK, BUTTON_RIGHT, BUTTON_NONE }, { ACTION_STD_CANCEL, BUTTON_LEFT, BUTTON_NONE }, - { ACTION_STD_QUICKSCREEN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, - { ACTION_STD_CONTEXT, BUTTON_DOWN|BUTTON_REL, BUTTON_NONE }, + { ACTION_STD_QUICKSCREEN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_DOWN }, + { ACTION_STD_CONTEXT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_SELECT }, LAST_ITEM_IN_LIST }; /* button_context_standard */ @@ -52,7 +52,7 @@ static const struct button_mapping button_context_standard[] = { static const struct button_mapping button_context_wps[] = { { ACTION_WPS_PLAY, BUTTON_UP|BUTTON_REL, BUTTON_UP }, - { ACTION_WPS_STOP, BUTTON_UP|BUTTON_REPEAT, BUTTON_UP }, + { ACTION_WPS_STOP, BUTTON_POWER|BUTTON_REL, BUTTON_POWER }, { ACTION_WPS_SKIPPREV, BUTTON_LEFT|BUTTON_REL, BUTTON_LEFT }, { ACTION_WPS_SEEKBACK, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, @@ -73,10 +73,10 @@ static const struct button_mapping button_context_wps[] = { { ACTION_WPS_BROWSE, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT }, - { ACTION_WPS_CONTEXT, BUTTON_DOWN|BUTTON_REL, BUTTON_DOWN }, + { ACTION_WPS_CONTEXT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_SELECT }, { ACTION_WPS_QUICKSCREEN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_DOWN }, - { ACTION_WPS_MENU, BUTTON_POWER|BUTTON_REL, BUTTON_POWER }, + { ACTION_WPS_MENU, BUTTON_DOWN|BUTTON_REL, BUTTON_DOWN }, { ACTION_WPS_REC, BUTTON_REC|BUTTON_REPEAT, BUTTON_NONE }, { ACTION_WPS_PITCHSCREEN, BUTTON_SELECT|BUTTON_UP, BUTTON_SELECT }, @@ -110,7 +110,7 @@ static const struct button_mapping button_context_list[] = { static const struct button_mapping button_context_tree[] = { { ACTION_TREE_WPS, BUTTON_UP|BUTTON_REL, BUTTON_UP }, - { ACTION_TREE_STOP, BUTTON_UP|BUTTON_REPEAT, BUTTON_UP }, + { ACTION_TREE_STOP, BUTTON_POWER|BUTTON_REL, BUTTON_POWER }, LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST), }; /* button_context_tree */ diff --git a/manual/platform/e200.tex b/manual/platform/e200.tex index d1a31e0726..0408a51de5 100644 --- a/manual/platform/e200.tex +++ b/manual/platform/e200.tex @@ -40,9 +40,9 @@ \newcommand{\ActionStdNext}{\ButtonScrollDown} \newcommand{\ActionStdNextRepeat}{Long \ButtonScrollDown} \newcommand{\ActionStdCancel}{\ButtonLeft} -\newcommand{\ActionStdContext}{\ButtonDown} +\newcommand{\ActionStdContext}{Long \ButtonSelect} \newcommand{\ActionStdQuickScreen}{Long \ButtonDown} -\newcommand{\ActionStdMenu}{\ButtonPower} +\newcommand{\ActionStdMenu}{\ButtonDown} \newcommand{\ActionStdOk}{\ButtonSelect{} or \ButtonRight} \newcommand{\ActionStdRec}{Long \ButtonRec} @@ -53,13 +53,13 @@ \newcommand{\ActionWpsSeekBack}{Long \ButtonLeft} \newcommand{\ActionWpsSeekFwd}{Long \ButtonRight} -\newcommand{\ActionWpsStop}{Long \ButtonUp} +\newcommand{\ActionWpsStop}{\ButtonPower} \newcommand{\ActionWpsVolDown}{\ButtonScrollDown} \newcommand{\ActionWpsVolUp}{\ButtonScrollUp} \newcommand{\ActionWpsQuickScreen}{Long \ButtonDown} -\newcommand{\ActionWpsMenu}{\ButtonPower} -\newcommand{\ActionWpsContext}{\ButtonDown} +\newcommand{\ActionWpsMenu}{\ButtonDown} +\newcommand{\ActionWpsContext}{Long \ButtonSelect} \newcommand{\ActionWpsBrowse}{\ButtonSelect} \newcommand{\ActionWpsAbSetBNextDir}{\ButtonPower{} + \ButtonRight}