diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2018-12-03 15:20:44 +0100 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2018-12-03 15:20:44 +0100 |
commit | b552a3720525652d01fe94e214d4fb195acab50a (patch) | |
tree | 7bb91e7f167e8b719da20522ecdef4772c083913 | |
parent | c1194aedb097a5c89c81d90fd8fb5a3f11c186f6 (diff) | |
download | rockbox-b552a3720525652d01fe94e214d4fb195acab50a.tar.gz rockbox-b552a3720525652d01fe94e214d4fb195acab50a.zip |
Tweak keymaps
Taken partly from:
http://forums.rockbox.org/index.php/topic,51653.msg243214/topicseen.html#msg243214
Change-Id: I7a565df0d6bd5a14cab541498e02ab64f25fa45f
-rw-r--r-- | apps/keymaps/keymap-agptekrocker.c | 235 |
1 files changed, 115 insertions, 120 deletions
diff --git a/apps/keymaps/keymap-agptekrocker.c b/apps/keymaps/keymap-agptekrocker.c index 74fd27262e..c74a0b8d00 100644 --- a/apps/keymaps/keymap-agptekrocker.c +++ b/apps/keymaps/keymap-agptekrocker.c | |||
@@ -32,184 +32,179 @@ | |||
32 | * Insert LAST_ITEM_IN_LIST at the end of each mapping | 32 | * Insert LAST_ITEM_IN_LIST at the end of each mapping |
33 | */ | 33 | */ |
34 | static const struct button_mapping button_context_standard[] = { | 34 | static const struct button_mapping button_context_standard[] = { |
35 | { ACTION_STD_PREV, BUTTON_UP, BUTTON_NONE }, | 35 | { ACTION_STD_PREV, BUTTON_UP, BUTTON_NONE }, |
36 | { ACTION_STD_PREVREPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, | 36 | { ACTION_STD_PREVREPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, |
37 | 37 | { ACTION_STD_NEXT, BUTTON_DOWN, BUTTON_NONE }, | |
38 | { ACTION_STD_NEXT, BUTTON_DOWN, BUTTON_NONE }, | 38 | { ACTION_STD_NEXTREPEAT, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, |
39 | { ACTION_STD_NEXTREPEAT, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | 39 | { ACTION_STD_OK, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT }, |
40 | 40 | { ACTION_STD_OK, BUTTON_RIGHT, BUTTON_NONE }, | |
41 | 41 | { ACTION_STD_CANCEL, BUTTON_LEFT, BUTTON_NONE }, | |
42 | { ACTION_STD_OK, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT }, | 42 | { ACTION_STD_CONTEXT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_SELECT }, |
43 | { ACTION_STD_OK, BUTTON_RIGHT, BUTTON_NONE }, | 43 | { ACTION_STD_MENU, BUTTON_POWER, BUTTON_NONE }, |
44 | 44 | ||
45 | { ACTION_STD_CANCEL, BUTTON_LEFT, BUTTON_NONE }, | 45 | /* ACTION_STD_QUICKSCREEN, |
46 | 46 | * ACTION_STD_KEYLOCK | |
47 | { ACTION_STD_CONTEXT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_SELECT }, | 47 | * ACTION_STD_REC |
48 | 48 | * ACTION_STD_HOTKEY | |
49 | { ACTION_STD_MENU, BUTTON_POWER, BUTTON_NONE }, | 49 | |
50 | 50 | * { ACTION_STD_QUICKSCREEN, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_SELECT }, | |
51 | // ACTION_STD_QUICKSCREEN, | 51 | */ |
52 | // ACTION_STD_KEYLOCK | ||
53 | // ACTION_STD_REC | ||
54 | // ACTION_STD_HOTKEY | ||
55 | |||
56 | // { ACTION_STD_QUICKSCREEN, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_SELECT }, | ||
57 | 52 | ||
58 | LAST_ITEM_IN_LIST | 53 | LAST_ITEM_IN_LIST |
59 | }; /* button_context_standard */ | 54 | }; /* button_context_standard */ |
60 | 55 | ||
61 | 56 | ||
62 | static const struct button_mapping button_context_wps[] = { | 57 | static const struct button_mapping button_context_wps[] = { |
63 | // { ACTION_WPS_BROWSE, BUTTON_UP|BUTTON_REPEAT, BUTTON_UP }, | 58 | /* { ACTION_WPS_BROWSE, BUTTON_UP|BUTTON_REPEAT, BUTTON_UP }, */ |
64 | { ACTION_WPS_PLAY, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT }, | 59 | { ACTION_WPS_PLAY, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT }, |
65 | { ACTION_WPS_SEEKBACK, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, | 60 | { ACTION_WPS_SEEKBACK, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, |
66 | { ACTION_WPS_SEEKFWD, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, | 61 | { ACTION_WPS_SEEKFWD, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, |
67 | { ACTION_WPS_STOPSEEK, BUTTON_LEFT|BUTTON_REL, BUTTON_LEFT|BUTTON_REPEAT }, | 62 | { ACTION_WPS_STOPSEEK, BUTTON_LEFT|BUTTON_REL, BUTTON_LEFT|BUTTON_REPEAT }, |
68 | { ACTION_WPS_STOPSEEK, BUTTON_RIGHT|BUTTON_REL, BUTTON_RIGHT|BUTTON_REPEAT }, | 63 | { ACTION_WPS_STOPSEEK, BUTTON_RIGHT|BUTTON_REL, BUTTON_RIGHT|BUTTON_REPEAT }, |
69 | { ACTION_WPS_SKIPNEXT, BUTTON_RIGHT|BUTTON_REL, BUTTON_RIGHT }, | 64 | { ACTION_WPS_SKIPNEXT, BUTTON_RIGHT|BUTTON_REL, BUTTON_RIGHT }, |
70 | { ACTION_WPS_SKIPPREV, BUTTON_LEFT|BUTTON_REL, BUTTON_LEFT }, | 65 | { ACTION_WPS_SKIPPREV, BUTTON_LEFT|BUTTON_REL, BUTTON_LEFT }, |
71 | { ACTION_WPS_STOP, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_SELECT }, | 66 | { ACTION_WPS_STOP, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_SELECT }, |
72 | { ACTION_WPS_VOLDOWN, BUTTON_VOLDOWN, BUTTON_NONE }, | 67 | { ACTION_WPS_VOLDOWN, BUTTON_VOLDOWN, BUTTON_NONE }, |
73 | { ACTION_WPS_VOLDOWN, BUTTON_VOLDOWN|BUTTON_REPEAT, BUTTON_NONE }, | 68 | { ACTION_WPS_VOLDOWN, BUTTON_VOLDOWN|BUTTON_REPEAT, BUTTON_NONE }, |
74 | { ACTION_WPS_VOLUP, BUTTON_VOLUP, BUTTON_NONE }, | 69 | { ACTION_WPS_VOLUP, BUTTON_VOLUP, BUTTON_NONE }, |
75 | { ACTION_WPS_VOLUP, BUTTON_VOLUP|BUTTON_REPEAT, BUTTON_NONE }, | 70 | { ACTION_WPS_VOLUP, BUTTON_VOLUP|BUTTON_REPEAT, BUTTON_NONE }, |
76 | // ACTION_WPS_PITCHSCREEN optional | 71 | { ACTION_WPS_PITCHSCREEN, BUTTON_UP|BUTTON_REPEAT, BUTTON_UP }, |
77 | // ACTION_WPS_ID3SCREEN optional | 72 | /* ACTION_WPS_ID3SCREEN optional */ |
78 | { ACTION_WPS_CONTEXT, BUTTON_DOWN|BUTTON_REL, BUTTON_DOWN }, | 73 | { ACTION_WPS_CONTEXT, BUTTON_DOWN|BUTTON_REL, BUTTON_DOWN }, |
79 | { ACTION_WPS_QUICKSCREEN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_DOWN }, // optional | 74 | { ACTION_WPS_QUICKSCREEN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_DOWN }, |
80 | { ACTION_WPS_MENU, BUTTON_UP|BUTTON_REL, BUTTON_UP }, /*this should be the same as ACTION_STD_MENU */ | 75 | { ACTION_WPS_MENU, BUTTON_UP|BUTTON_REL, BUTTON_UP }, /* this should be the same as ACTION_STD_MENU */ |
81 | // ACTION_WPS_VIEW_PLAYLIST | 76 | /* ACTION_WPS_VIEW_PLAYLIST |
82 | // ACTION_WPS_LIST_BOOKMARKS,/* optional */ | 77 | * ACTION_WPS_LIST_BOOKMARKS, optional |
83 | // ACTION_WPS_CREATE_BOOKMARK,/* optional */ | 78 | * ACTION_WPS_CREATE_BOOKMARK, optional |
84 | 79 | */ | |
85 | { ACTION_STD_KEYLOCK, BUTTON_POWER, BUTTON_NONE }, | 80 | |
81 | { ACTION_STD_KEYLOCK, BUTTON_POWER, BUTTON_NONE }, | ||
86 | 82 | ||
87 | LAST_ITEM_IN_LIST | 83 | LAST_ITEM_IN_LIST |
88 | }; /* button_context_wps */ | 84 | }; /* button_context_wps */ |
89 | 85 | ||
90 | static const struct button_mapping button_context_settings[] = { | 86 | static const struct button_mapping button_context_settings[] = { |
91 | { ACTION_SETTINGS_INC, BUTTON_VOLUP, BUTTON_NONE }, | 87 | { ACTION_SETTINGS_INC, BUTTON_VOLUP, BUTTON_NONE }, |
92 | { ACTION_SETTINGS_INCREPEAT,BUTTON_VOLUP|BUTTON_REPEAT, BUTTON_NONE }, | 88 | { ACTION_SETTINGS_INCREPEAT, BUTTON_VOLUP|BUTTON_REPEAT, BUTTON_NONE }, |
93 | // ACTION_SETTINGS_INCBIGSTEP | 89 | /* ACTION_SETTINGS_INCBIGSTEP */ |
94 | { ACTION_SETTINGS_DEC, BUTTON_VOLDOWN, BUTTON_NONE }, | 90 | { ACTION_SETTINGS_DEC, BUTTON_VOLDOWN, BUTTON_NONE }, |
95 | { ACTION_SETTINGS_DECREPEAT,BUTTON_VOLDOWN|BUTTON_REPEAT, BUTTON_NONE }, | 91 | { ACTION_SETTINGS_DECREPEAT, BUTTON_VOLDOWN|BUTTON_REPEAT, BUTTON_NONE }, |
96 | // ACTION_SETTINGS_DECBIGSTEP | 92 | /* ACTION_SETTINGS_DECBIGSTEP */ |
97 | { ACTION_SETTINGS_RESET, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_SELECT }, | 93 | { ACTION_SETTINGS_RESET, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_SELECT }, |
98 | // ACTION_SETTINGS_SET, /* Used by touchscreen targets */ | 94 | /* ACTION_SETTINGS_SET, Used by touchscreen targets */ |
99 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD), | 95 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD), |
100 | }; /* button_context_settings */ | 96 | }; /* button_context_settings */ |
101 | 97 | ||
102 | static const struct button_mapping button_context_list[] = { | 98 | static const struct button_mapping button_context_list[] = { |
103 | // ACTION_LISTTREE_PGUP,/* optional */ | 99 | /* ACTION_LISTTREE_PGUP, optional |
104 | // ACTION_LISTTREE_PGDOWN,/* optional */ | 100 | * ACTION_LISTTREE_PGDOWN,optional |
101 | */ | ||
105 | 102 | ||
106 | #ifdef HAVE_VOLUME_IN_LIST | 103 | #ifdef HAVE_VOLUME_IN_LIST |
107 | { ACTION_LIST_VOLUP, BUTTON_VOL_UP, BUTTON_NONE }, | 104 | { ACTION_LIST_VOLUP, BUTTON_VOL_UP, BUTTON_NONE }, |
108 | { ACTION_LIST_VOLUP, BUTTON_VOL_UP|BUTTON_REPEAT, BUTTON_NONE }, | 105 | { ACTION_LIST_VOLUP, BUTTON_VOL_UP|BUTTON_REPEAT, BUTTON_NONE }, |
109 | { ACTION_LIST_VOLDOWN, BUTTON_VOL_DOWN, BUTTON_NONE }, | 106 | { ACTION_LIST_VOLDOWN, BUTTON_VOL_DOWN, BUTTON_NONE }, |
110 | { ACTION_LIST_VOLDOWN, BUTTON_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | 107 | { ACTION_LIST_VOLDOWN, BUTTON_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE }, |
111 | #endif | 108 | #endif |
112 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) | 109 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD) |
113 | }; /* button_context_list */ | 110 | }; /* button_context_list */ |
114 | 111 | ||
115 | static const struct button_mapping button_context_tree[] = { | 112 | static const struct button_mapping button_context_tree[] = { |
116 | // ACTION_TREE_ROOT_INIT, | 113 | /* ACTION_TREE_ROOT_INIT, |
117 | // ACTION_TREE_PGLEFT,/* optional */ | 114 | * ACTION_TREE_PGLEFT, optional |
118 | // ACTION_TREE_PGRIGHT,/* optional */ | 115 | * ACTION_TREE_PGRIGHT, optional |
119 | // ACTION_TREE_STOP, | 116 | * ACTION_TREE_STOP, |
120 | // ACTION_TREE_WPS, | 117 | * ACTION_TREE_WPS, |
121 | // ACTION_TREE_HOTKEY, | 118 | * ACTION_TREE_HOTKEY, |
122 | 119 | */ | |
123 | { ACTION_TREE_WPS, BUTTON_UP|BUTTON_REL, BUTTON_UP }, | 120 | { ACTION_TREE_WPS, BUTTON_UP|BUTTON_REL, BUTTON_UP }, |
124 | // { ACTION_TREE_STOP, BUTTON_POWER|BUTTON_REL, BUTTON_POWER }, | 121 | /* { ACTION_TREE_STOP, BUTTON_POWER|BUTTON_REL, BUTTON_POWER }, |
125 | // { ACTION_TREE_HOTKEY, BUTTON_REC|BUTTON_REL, BUTTON_REC }, | 122 | * { ACTION_TREE_HOTKEY, BUTTON_REC|BUTTON_REL, BUTTON_REC }, |
126 | 123 | */ | |
127 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST), | 124 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST), |
128 | }; /* button_context_tree */ | 125 | }; /* button_context_tree */ |
129 | 126 | ||
130 | static const struct button_mapping button_context_yesno[] = { | 127 | static const struct button_mapping button_context_yesno[] = { |
131 | { ACTION_YESNO_ACCEPT, BUTTON_SELECT, BUTTON_NONE }, | 128 | { ACTION_YESNO_ACCEPT, BUTTON_SELECT, BUTTON_NONE }, |
132 | 129 | ||
133 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD), | 130 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD), |
134 | }; /* button_context_settings_yesno */ | 131 | }; /* button_context_settings_yesno */ |
135 | 132 | ||
136 | static const struct button_mapping button_context_quickscreen[] = { | 133 | static const struct button_mapping button_context_quickscreen[] = { |
137 | { ACTION_QS_TOP, BUTTON_UP|BUTTON_REL, BUTTON_NONE }, | 134 | { ACTION_QS_TOP, BUTTON_UP|BUTTON_REL, BUTTON_NONE }, |
138 | { ACTION_QS_TOP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, | 135 | { ACTION_QS_TOP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, |
139 | { ACTION_QS_DOWN, BUTTON_DOWN|BUTTON_REL, BUTTON_NONE }, | 136 | { ACTION_QS_DOWN, BUTTON_DOWN|BUTTON_REL, BUTTON_NONE }, |
140 | { ACTION_QS_DOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | 137 | { ACTION_QS_DOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, |
141 | { ACTION_QS_LEFT, BUTTON_LEFT|BUTTON_REL, BUTTON_NONE }, | 138 | { ACTION_QS_LEFT, BUTTON_LEFT|BUTTON_REL, BUTTON_NONE }, |
142 | { ACTION_QS_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, | 139 | { ACTION_QS_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, |
143 | { ACTION_QS_RIGHT, BUTTON_RIGHT|BUTTON_REL, BUTTON_NONE }, | 140 | { ACTION_QS_RIGHT, BUTTON_RIGHT|BUTTON_REL, BUTTON_NONE }, |
144 | { ACTION_QS_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, | 141 | { ACTION_QS_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, |
145 | 142 | ||
146 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD), | 143 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD), |
147 | }; /* button_context_quickscreen */ | 144 | }; /* button_context_quickscreen */ |
148 | 145 | ||
149 | static const struct button_mapping button_context_settings_time[] = { | 146 | static const struct button_mapping button_context_settings_time[] = { |
150 | { ACTION_STD_PREV, BUTTON_LEFT|BUTTON_REL, BUTTON_LEFT }, | 147 | { ACTION_STD_PREV, BUTTON_LEFT|BUTTON_REL, BUTTON_LEFT }, |
151 | // { ACTION_STD_PREVREPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_LEFT }, | 148 | { ACTION_STD_PREVREPEAT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_LEFT }, |
152 | { ACTION_STD_NEXT, BUTTON_RIGHT|BUTTON_REL, BUTTON_RIGHT }, | 149 | { ACTION_STD_NEXT, BUTTON_RIGHT|BUTTON_REL, BUTTON_RIGHT }, |
153 | { ACTION_STD_NEXTREPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_RIGHT }, | 150 | { ACTION_STD_NEXTREPEAT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_RIGHT }, |
154 | { ACTION_STD_CANCEL, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_LEFT }, | 151 | { ACTION_STD_CANCEL, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_LEFT }, |
155 | { ACTION_STD_OK, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT }, | 152 | { ACTION_STD_OK, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT }, |
156 | { ACTION_SETTINGS_INC, BUTTON_UP, BUTTON_NONE }, | 153 | { ACTION_SETTINGS_INC, BUTTON_UP, BUTTON_NONE }, |
157 | { ACTION_SETTINGS_INCREPEAT,BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, | 154 | { ACTION_SETTINGS_INCREPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, |
158 | { ACTION_SETTINGS_DEC, BUTTON_DOWN, BUTTON_NONE }, | 155 | { ACTION_SETTINGS_DEC, BUTTON_DOWN, BUTTON_NONE }, |
159 | { ACTION_SETTINGS_DECREPEAT,BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | 156 | { ACTION_SETTINGS_DECREPEAT, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, |
160 | 157 | ||
161 | LAST_ITEM_IN_LIST | 158 | LAST_ITEM_IN_LIST |
162 | //LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS) | 159 | //LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS) |
163 | }; /* button_context_settings_time */ | 160 | }; /* button_context_settings_time */ |
164 | 161 | ||
165 | static const struct button_mapping button_context_pitchscreen[] = { | 162 | static const struct button_mapping button_context_pitchscreen[] = { |
166 | { ACTION_PS_INC_SMALL, BUTTON_VOLUP, BUTTON_NONE }, | 163 | { ACTION_PS_INC_SMALL, BUTTON_VOLUP, BUTTON_NONE }, |
167 | { ACTION_PS_INC_BIG, BUTTON_VOLUP|BUTTON_REPEAT, BUTTON_NONE }, | 164 | { ACTION_PS_INC_BIG, BUTTON_VOLUP|BUTTON_REPEAT, BUTTON_NONE }, |
168 | { ACTION_PS_DEC_SMALL, BUTTON_VOLDOWN, BUTTON_NONE }, | 165 | { ACTION_PS_DEC_SMALL, BUTTON_VOLDOWN, BUTTON_NONE }, |
169 | { ACTION_PS_DEC_BIG, BUTTON_VOLDOWN|BUTTON_REPEAT, BUTTON_NONE }, | 166 | { ACTION_PS_DEC_BIG, BUTTON_VOLDOWN|BUTTON_REPEAT, BUTTON_NONE }, |
170 | { ACTION_PS_NUDGE_LEFT, BUTTON_LEFT, BUTTON_NONE }, | 167 | { ACTION_PS_NUDGE_LEFT, BUTTON_LEFT, BUTTON_NONE }, |
171 | { ACTION_PS_NUDGE_LEFTOFF, BUTTON_LEFT|BUTTON_REL, BUTTON_NONE }, | 168 | { ACTION_PS_NUDGE_LEFTOFF, BUTTON_LEFT|BUTTON_REL, BUTTON_NONE }, |
172 | { ACTION_PS_NUDGE_RIGHT, BUTTON_RIGHT, BUTTON_NONE }, | 169 | { ACTION_PS_NUDGE_RIGHT, BUTTON_RIGHT, BUTTON_NONE }, |
173 | { ACTION_PS_NUDGE_RIGHTOFF, BUTTON_RIGHT|BUTTON_REL, BUTTON_NONE }, | 170 | { ACTION_PS_NUDGE_RIGHTOFF, BUTTON_RIGHT|BUTTON_REL, BUTTON_NONE }, |
174 | // { ACTION_PS_TOGGLE_MODE, BUTTON_REC, BUTTON_NONE }, | 171 | { ACTION_PS_TOGGLE_MODE, BUTTON_UP, BUTTON_NONE }, |
175 | { ACTION_PS_RESET, BUTTON_SELECT, BUTTON_NONE }, | 172 | { ACTION_PS_RESET, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_SELECT }, |
176 | { ACTION_PS_EXIT, BUTTON_POWER, BUTTON_NONE }, | 173 | { ACTION_PS_EXIT, BUTTON_POWER, BUTTON_NONE }, |
177 | { ACTION_PS_EXIT, BUTTON_UP, BUTTON_NONE }, | 174 | { ACTION_PS_EXIT, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT }, |
178 | { ACTION_PS_SLOWER, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, | 175 | { ACTION_PS_SLOWER, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, |
179 | { ACTION_PS_FASTER, BUTTON_RIGHT|BUTTON_REPEAT,BUTTON_NONE }, | 176 | { ACTION_PS_FASTER, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, |
180 | 177 | ||
181 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD), | 178 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD), |
182 | }; /* button_context_pitchscreen */ | 179 | }; /* button_context_pitchscreen */ |
183 | 180 | ||
184 | static const struct button_mapping button_context_keyboard[] = { | 181 | static const struct button_mapping button_context_keyboard[] = { |
185 | { ACTION_KBD_LEFT, BUTTON_LEFT, BUTTON_NONE }, | 182 | { ACTION_KBD_LEFT, BUTTON_LEFT, BUTTON_NONE }, |
186 | { ACTION_KBD_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, | 183 | { ACTION_KBD_LEFT, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, |
187 | { ACTION_KBD_RIGHT, BUTTON_RIGHT, BUTTON_NONE }, | 184 | { ACTION_KBD_RIGHT, BUTTON_RIGHT, BUTTON_NONE }, |
188 | { ACTION_KBD_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, | 185 | { ACTION_KBD_RIGHT, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, |
189 | |||
190 | { ACTION_KBD_CURSOR_LEFT, BUTTON_POWER|BUTTON_LEFT, BUTTON_NONE }, | 186 | { ACTION_KBD_CURSOR_LEFT, BUTTON_POWER|BUTTON_LEFT, BUTTON_NONE }, |
191 | { ACTION_KBD_CURSOR_LEFT, BUTTON_POWER|BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, | 187 | { ACTION_KBD_CURSOR_LEFT, BUTTON_POWER|BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE }, |
192 | { ACTION_KBD_CURSOR_RIGHT, BUTTON_POWER|BUTTON_RIGHT, BUTTON_NONE }, | 188 | { ACTION_KBD_CURSOR_RIGHT, BUTTON_POWER|BUTTON_RIGHT, BUTTON_NONE }, |
193 | { ACTION_KBD_CURSOR_RIGHT, BUTTON_POWER|BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, | 189 | { ACTION_KBD_CURSOR_RIGHT, BUTTON_POWER|BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE }, |
194 | 190 | { ACTION_KBD_UP, BUTTON_VOLDOWN, BUTTON_NONE }, | |
195 | { ACTION_KBD_UP, BUTTON_VOLDOWN, BUTTON_NONE }, | 191 | { ACTION_KBD_UP, BUTTON_VOLDOWN|BUTTON_REPEAT, BUTTON_NONE }, |
196 | { ACTION_KBD_UP, BUTTON_VOLDOWN|BUTTON_REPEAT, BUTTON_NONE }, | 192 | { ACTION_KBD_DOWN, BUTTON_VOLUP, BUTTON_NONE }, |
197 | { ACTION_KBD_DOWN, BUTTON_VOLUP, BUTTON_NONE }, | 193 | { ACTION_KBD_DOWN, BUTTON_VOLUP|BUTTON_REPEAT, BUTTON_NONE }, |
198 | { ACTION_KBD_DOWN, BUTTON_VOLUP|BUTTON_REPEAT, BUTTON_NONE }, | 194 | { ACTION_KBD_PAGE_FLIP, BUTTON_POWER|BUTTON_SELECT, BUTTON_POWER }, |
199 | { ACTION_KBD_PAGE_FLIP, BUTTON_POWER|BUTTON_SELECT, BUTTON_POWER }, | 195 | { ACTION_KBD_BACKSPACE, BUTTON_DOWN, BUTTON_NONE }, |
200 | { ACTION_KBD_BACKSPACE, BUTTON_DOWN, BUTTON_NONE }, | 196 | { ACTION_KBD_BACKSPACE, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, |
201 | { ACTION_KBD_BACKSPACE, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | 197 | { ACTION_KBD_SELECT, BUTTON_SELECT, BUTTON_NONE }, |
202 | { ACTION_KBD_SELECT, BUTTON_SELECT, BUTTON_NONE }, | 198 | { ACTION_KBD_DONE, BUTTON_UP, BUTTON_NONE }, |
203 | { ACTION_KBD_DONE, BUTTON_UP, BUTTON_NONE }, | 199 | { ACTION_KBD_ABORT, BUTTON_POWER, BUTTON_NONE }, |
204 | { ACTION_KBD_ABORT, BUTTON_POWER, BUTTON_NONE }, | 200 | { ACTION_KBD_MORSE_INPUT, BUTTON_POWER|BUTTON_REL, BUTTON_POWER }, |
205 | { ACTION_KBD_MORSE_INPUT, BUTTON_POWER|BUTTON_REL, BUTTON_POWER }, | 201 | { ACTION_KBD_MORSE_SELECT, BUTTON_SELECT|BUTTON_REL, BUTTON_NONE }, |
206 | { ACTION_KBD_MORSE_SELECT, BUTTON_SELECT|BUTTON_REL, BUTTON_NONE }, | ||
207 | 202 | ||
208 | LAST_ITEM_IN_LIST | 203 | LAST_ITEM_IN_LIST |
209 | }; /* button_context_keyboard */ | 204 | }; /* button_context_keyboard */ |
210 | 205 | ||
211 | static const struct button_mapping button_context_bmark[] = { | 206 | static const struct button_mapping button_context_bmark[] = { |
212 | { ACTION_BMS_DELETE, BUTTON_LEFT, BUTTON_NONE }, | 207 | { ACTION_BMS_DELETE, BUTTON_LEFT, BUTTON_NONE }, |
213 | 208 | ||
214 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST), | 209 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST), |
215 | }; /* button_context_bmark */ | 210 | }; /* button_context_bmark */ |