summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-08-23 12:34:25 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-08-25 23:28:59 +0100
commitcbf1970b563e5fd5ef5b20f7dde47db80343bd30 (patch)
tree953edc17943d5ad8f10b6d52826c6804041c5818
parentdbd051394e530d403573d5a34c737371039c81f3 (diff)
downloadrockbox-cbf1970b563e5fd5ef5b20f7dde47db80343bd30.tar.gz
rockbox-cbf1970b563e5fd5ef5b20f7dde47db80343bd30.zip
Shanling Q1: minor update to keymap
- Enable repeat for prev/next keys - Provide a way to access the context menu using buttons - Update the manual Change-Id: I53a7474cc64f915851175aea0695229c581fd8a6
-rw-r--r--apps/keymaps/keymap-shanlingq1.c4
-rw-r--r--manual/platform/keymap-shanlingq1.tex6
2 files changed, 6 insertions, 4 deletions
diff --git a/apps/keymaps/keymap-shanlingq1.c b/apps/keymaps/keymap-shanlingq1.c
index 2c09a40f4b..cb0e0a44ff 100644
--- a/apps/keymaps/keymap-shanlingq1.c
+++ b/apps/keymaps/keymap-shanlingq1.c
@@ -30,8 +30,11 @@
30 30
31static const struct button_mapping button_context_standard[] = { 31static const struct button_mapping button_context_standard[] = {
32 {ACTION_STD_PREV, BUTTON_PREV, BUTTON_NONE}, 32 {ACTION_STD_PREV, BUTTON_PREV, BUTTON_NONE},
33 {ACTION_STD_PREVREPEAT, BUTTON_PREV|BUTTON_REPEAT, BUTTON_NONE},
33 {ACTION_STD_NEXT, BUTTON_NEXT, BUTTON_NONE}, 34 {ACTION_STD_NEXT, BUTTON_NEXT, BUTTON_NONE},
35 {ACTION_STD_NEXTREPEAT, BUTTON_NEXT|BUTTON_REPEAT, BUTTON_NONE},
34 {ACTION_STD_OK, BUTTON_PLAY|BUTTON_REL, BUTTON_PLAY}, 36 {ACTION_STD_OK, BUTTON_PLAY|BUTTON_REL, BUTTON_PLAY},
37 {ACTION_STD_CONTEXT, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY},
35 {ACTION_STD_CANCEL, BUTTON_POWER|BUTTON_REL, BUTTON_POWER}, 38 {ACTION_STD_CANCEL, BUTTON_POWER|BUTTON_REL, BUTTON_POWER},
36 LAST_ITEM_IN_LIST 39 LAST_ITEM_IN_LIST
37}; /* button_context_standard */ 40}; /* button_context_standard */
@@ -77,7 +80,6 @@ const struct button_mapping* target_get_context_mapping(int context)
77 case CONTEXT_CUSTOM|CONTEXT_TREE: 80 case CONTEXT_CUSTOM|CONTEXT_TREE:
78 case CONTEXT_MAINMENU: 81 case CONTEXT_MAINMENU:
79 case CONTEXT_BOOKMARKSCREEN: 82 case CONTEXT_BOOKMARKSCREEN:
80 //return button_context_tree;
81 case CONTEXT_LIST: 83 case CONTEXT_LIST:
82 return button_context_list; 84 return button_context_list;
83 case CONTEXT_YESNOSCREEN: 85 case CONTEXT_YESNOSCREEN:
diff --git a/manual/platform/keymap-shanlingq1.tex b/manual/platform/keymap-shanlingq1.tex
index 9476ca8a70..4e426e1604 100644
--- a/manual/platform/keymap-shanlingq1.tex
+++ b/manual/platform/keymap-shanlingq1.tex
@@ -13,7 +13,7 @@
13\newcommand{\ActionStdNext}{\ButtonNext{} or \TouchActionStdNext} 13\newcommand{\ActionStdNext}{\ButtonNext{} or \TouchActionStdNext}
14\newcommand{\ActionStdNextRepeat}{Long \ButtonNext{} or \TouchActionStdNextRepeat} 14\newcommand{\ActionStdNextRepeat}{Long \ButtonNext{} or \TouchActionStdNextRepeat}
15\newcommand{\ActionStdCancel}{\ButtonPower{} or \TouchActionStdCancel} 15\newcommand{\ActionStdCancel}{\ButtonPower{} or \TouchActionStdCancel}
16\newcommand{\ActionStdContext}{\TouchActionStdContext} 16\newcommand{\ActionStdContext}{Long \ButtonPlay{} or \TouchActionStdContext}
17\newcommand{\ActionStdQuickScreen}{\TouchActionStdQuickScreen} 17\newcommand{\ActionStdQuickScreen}{\TouchActionStdQuickScreen}
18\newcommand{\ActionQuickScreenExit}{\TouchActionQuickScreenExit} 18\newcommand{\ActionQuickScreenExit}{\TouchActionQuickScreenExit}
19\newcommand{\ActionStdMenu}{\TouchActionStdMenu} 19\newcommand{\ActionStdMenu}{\TouchActionStdMenu}
@@ -47,7 +47,7 @@
47\newcommand{\ActionTreeParentDirectory}{\TouchActionTreeParentDirectory} 47\newcommand{\ActionTreeParentDirectory}{\TouchActionTreeParentDirectory}
48 48
49%Button actions, YesNo context 49%Button actions, YesNo context
50\newcommand{\ActionYesNoAccept}{\TouchActionYesNoAccept} 50\newcommand{\ActionYesNoAccept}{\ButtonPlay}
51 51
52%Button actions, Virtual Keyboard Context 52%Button actions, Virtual Keyboard Context
53\newcommand{\ActionKbdLeft}{\TouchActionKbdLeft} 53\newcommand{\ActionKbdLeft}{\TouchActionKbdLeft}
@@ -83,7 +83,7 @@
83\newcommand{\PluginDown}{\TouchBottomMiddle} 83\newcommand{\PluginDown}{\TouchBottomMiddle}
84\newcommand{\PluginLeft}{\TouchMidLeft} 84\newcommand{\PluginLeft}{\TouchMidLeft}
85\newcommand{\PluginRight}{\TouchMidRight} 85\newcommand{\PluginRight}{\TouchMidRight}
86\newcommand{\PluginCancel}{\ButtonPower or \TouchBottomRight} 86\newcommand{\PluginCancel}{\ButtonPower{} or \TouchBottomRight}
87\newcommand{\PluginExit}{\ButtonPower} 87\newcommand{\PluginExit}{\ButtonPower}
88\newcommand{\PluginSelect}{\TouchCenter} 88\newcommand{\PluginSelect}{\TouchCenter}
89\newcommand{\PluginSelectRepeat}{Long \TouchCenter} 89\newcommand{\PluginSelectRepeat}{Long \TouchCenter}