diff options
-rw-r--r-- | apps/keymaps/keymap-mpio-hd300.c | 71 |
1 files changed, 32 insertions, 39 deletions
diff --git a/apps/keymaps/keymap-mpio-hd300.c b/apps/keymaps/keymap-mpio-hd300.c index a849635b7d..2e0b9c06a5 100644 --- a/apps/keymaps/keymap-mpio-hd300.c +++ b/apps/keymaps/keymap-mpio-hd300.c | |||
@@ -35,10 +35,10 @@ | |||
35 | *****************************************************************************/ | 35 | *****************************************************************************/ |
36 | 36 | ||
37 | static const struct button_mapping button_context_standard[] = { | 37 | static const struct button_mapping button_context_standard[] = { |
38 | { ACTION_STD_PREV, BUTTON_UP, BUTTON_NONE }, | 38 | { ACTION_STD_PREV, BUTTON_UP, BUTTON_NONE }, |
39 | { ACTION_STD_PREVREPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, | 39 | { ACTION_STD_PREVREPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, |
40 | { ACTION_STD_NEXT, BUTTON_DOWN, BUTTON_NONE }, | 40 | { ACTION_STD_NEXT, BUTTON_DOWN, BUTTON_NONE }, |
41 | { ACTION_STD_NEXTREPEAT, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | 41 | { ACTION_STD_NEXTREPEAT, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, |
42 | { ACTION_STD_OK, BUTTON_ENTER|BUTTON_REL, BUTTON_ENTER }, | 42 | { ACTION_STD_OK, BUTTON_ENTER|BUTTON_REL, BUTTON_ENTER }, |
43 | { ACTION_STD_CANCEL, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, | 43 | { ACTION_STD_CANCEL, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, |
44 | { ACTION_STD_CONTEXT, BUTTON_ENTER|BUTTON_REPEAT, BUTTON_ENTER }, | 44 | { ACTION_STD_CONTEXT, BUTTON_ENTER|BUTTON_REPEAT, BUTTON_ENTER }, |
@@ -73,10 +73,10 @@ static const struct button_mapping button_context_wps[] = { | |||
73 | { ACTION_WPS_SKIPNEXT, BUTTON_FF|BUTTON_REL, BUTTON_FF }, | 73 | { ACTION_WPS_SKIPNEXT, BUTTON_FF|BUTTON_REL, BUTTON_FF }, |
74 | { ACTION_WPS_SKIPPREV, BUTTON_REW|BUTTON_REL, BUTTON_REW }, | 74 | { ACTION_WPS_SKIPPREV, BUTTON_REW|BUTTON_REL, BUTTON_REW }, |
75 | { ACTION_WPS_STOP, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY }, | 75 | { ACTION_WPS_STOP, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY }, |
76 | { ACTION_WPS_VOLDOWN, BUTTON_DOWN, BUTTON_NONE }, | 76 | { ACTION_WPS_VOLDOWN, BUTTON_DOWN, BUTTON_NONE }, |
77 | { ACTION_WPS_VOLDOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | 77 | { ACTION_WPS_VOLDOWN, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, |
78 | { ACTION_WPS_VOLUP, BUTTON_UP, BUTTON_NONE }, | 78 | { ACTION_WPS_VOLUP, BUTTON_UP, BUTTON_NONE }, |
79 | { ACTION_WPS_VOLUP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, | 79 | { ACTION_WPS_VOLUP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, |
80 | /* { ACTION_WPS_PITCHSCREEN, BUTTON_, BUTTON_ }, */ | 80 | /* { ACTION_WPS_PITCHSCREEN, BUTTON_, BUTTON_ }, */ |
81 | /* { ACTION_WPS_ID3SCREEN, BUTTON_, BUTTON_ }, */ | 81 | /* { ACTION_WPS_ID3SCREEN, BUTTON_, BUTTON_ }, */ |
82 | { ACTION_WPS_CONTEXT, BUTTON_ENTER|BUTTON_REPEAT, BUTTON_ENTER }, | 82 | { ACTION_WPS_CONTEXT, BUTTON_ENTER|BUTTON_REPEAT, BUTTON_ENTER }, |
@@ -93,11 +93,11 @@ static const struct button_mapping button_context_wps[] = { | |||
93 | }; /* button_context_wps */ | 93 | }; /* button_context_wps */ |
94 | 94 | ||
95 | static const struct button_mapping button_context_settings[] = { | 95 | static const struct button_mapping button_context_settings[] = { |
96 | { ACTION_SETTINGS_INC, BUTTON_UP, BUTTON_NONE }, | 96 | { ACTION_SETTINGS_INC, BUTTON_UP, BUTTON_NONE }, |
97 | { ACTION_SETTINGS_INCREPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, | 97 | { ACTION_SETTINGS_INCREPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, |
98 | /* { ACTION_SETTINGS_INCBIGSTEP,BUTTON_, BUTTON_ }, */ | 98 | /* { ACTION_SETTINGS_INCBIGSTEP,BUTTON_, BUTTON_ }, */ |
99 | { ACTION_SETTINGS_DEC, BUTTON_DOWN, BUTTON_NONE }, | 99 | { ACTION_SETTINGS_DEC, BUTTON_DOWN, BUTTON_NONE }, |
100 | { ACTION_SETTINGS_DECREPEAT, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | 100 | { ACTION_SETTINGS_DECREPEAT, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, |
101 | /* { ACTION_SETTINGS_DECBIGSTEP,BUTTON_, BUTTON_ }, */ | 101 | /* { ACTION_SETTINGS_DECBIGSTEP,BUTTON_, BUTTON_ }, */ |
102 | { ACTION_STD_PREV, BUTTON_REW, BUTTON_NONE }, | 102 | { ACTION_STD_PREV, BUTTON_REW, BUTTON_NONE }, |
103 | { ACTION_STD_PREVREPEAT, BUTTON_REW|BUTTON_REPEAT, BUTTON_NONE }, | 103 | { ACTION_STD_PREVREPEAT, BUTTON_REW|BUTTON_REPEAT, BUTTON_NONE }, |
@@ -120,12 +120,6 @@ static const struct button_mapping button_context_bmark[] = { | |||
120 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST), | 120 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST), |
121 | }; /* button_context_bmark */ | 121 | }; /* button_context_bmark */ |
122 | 122 | ||
123 | static const struct button_mapping button_context_time[] = { | ||
124 | { ACTION_STD_CANCEL, BUTTON_MENU, BUTTON_NONE }, | ||
125 | { ACTION_STD_OK, BUTTON_ENTER, BUTTON_NONE }, | ||
126 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS), | ||
127 | }; /* button_context_time */ | ||
128 | |||
129 | /* | 123 | /* |
130 | static const struct button_mapping button_context_quickscreen[] = { | 124 | static const struct button_mapping button_context_quickscreen[] = { |
131 | { ACTION_QS_LEFT, BUTTON_VOL_DOWN, BUTTON_NONE }, | 125 | { ACTION_QS_LEFT, BUTTON_VOL_DOWN, BUTTON_NONE }, |
@@ -141,17 +135,17 @@ static const struct button_mapping button_context_quickscreen[] = { | |||
141 | };*/ /* button_context_quickscreen */ | 135 | };*/ /* button_context_quickscreen */ |
142 | 136 | ||
143 | static const struct button_mapping button_context_pitchscreen[] = { | 137 | static const struct button_mapping button_context_pitchscreen[] = { |
144 | // { ACTION_PS_INC_SMALL, BUTTON_VOL_UP, BUTTON_NONE }, | 138 | /* { ACTION_PS_INC_SMALL, BUTTON_VOL_UP, BUTTON_NONE }, */ |
145 | // { ACTION_PS_INC_BIG, BUTTON_VOL_UP|BUTTON_REPEAT, BUTTON_NONE }, | 139 | /* { ACTION_PS_INC_BIG, BUTTON_VOL_UP|BUTTON_REPEAT, BUTTON_NONE }, */ |
146 | // { ACTION_PS_DEC_SMALL, BUTTON_VOL_DOWN, BUTTON_NONE }, | 140 | /* { ACTION_PS_DEC_SMALL, BUTTON_VOL_DOWN, BUTTON_NONE }, */ |
147 | // { ACTION_PS_DEC_BIG, BUTTON_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | 141 | /* { ACTION_PS_DEC_BIG, BUTTON_VOL_DOWN|BUTTON_REPEAT, BUTTON_NONE }, */ |
148 | { ACTION_PS_NUDGE_LEFT, BUTTON_REW, BUTTON_NONE }, | 142 | { ACTION_PS_NUDGE_LEFT, BUTTON_REW, BUTTON_NONE }, |
149 | { ACTION_PS_NUDGE_RIGHT, BUTTON_FF, BUTTON_NONE }, | 143 | { ACTION_PS_NUDGE_RIGHT, BUTTON_FF, BUTTON_NONE }, |
150 | { ACTION_PS_NUDGE_LEFTOFF, BUTTON_REW|BUTTON_REL, BUTTON_NONE }, | 144 | { ACTION_PS_NUDGE_LEFTOFF, BUTTON_REW|BUTTON_REL, BUTTON_NONE }, |
151 | { ACTION_PS_NUDGE_RIGHTOFF, BUTTON_FF|BUTTON_REL, BUTTON_NONE }, | 145 | { ACTION_PS_NUDGE_RIGHTOFF, BUTTON_FF|BUTTON_REL, BUTTON_NONE }, |
152 | { ACTION_PS_TOGGLE_MODE, BUTTON_PLAY, BUTTON_NONE }, | 146 | { ACTION_PS_TOGGLE_MODE, BUTTON_PLAY, BUTTON_NONE }, |
153 | { ACTION_PS_RESET, BUTTON_ENTER, BUTTON_NONE }, | 147 | { ACTION_PS_RESET, BUTTON_ENTER, BUTTON_NONE }, |
154 | { ACTION_PS_EXIT, BUTTON_MENU, BUTTON_NONE }, | 148 | { ACTION_PS_EXIT, BUTTON_MENU, BUTTON_NONE }, |
155 | { ACTION_PS_SLOWER, BUTTON_REW|BUTTON_REPEAT, BUTTON_NONE }, | 149 | { ACTION_PS_SLOWER, BUTTON_REW|BUTTON_REPEAT, BUTTON_NONE }, |
156 | { ACTION_PS_FASTER, BUTTON_FF|BUTTON_REPEAT, BUTTON_NONE }, | 150 | { ACTION_PS_FASTER, BUTTON_FF|BUTTON_REPEAT, BUTTON_NONE }, |
157 | 151 | ||
@@ -159,17 +153,17 @@ static const struct button_mapping button_context_pitchscreen[] = { | |||
159 | }; /* button_context_pitchscreen */ | 153 | }; /* button_context_pitchscreen */ |
160 | 154 | ||
161 | static const struct button_mapping button_context_radio[] = { | 155 | static const struct button_mapping button_context_radio[] = { |
162 | { ACTION_FM_MENU, BUTTON_ENTER|BUTTON_REPEAT, BUTTON_NONE }, | 156 | { ACTION_FM_MENU, BUTTON_ENTER|BUTTON_REPEAT, BUTTON_NONE }, |
163 | { ACTION_FM_PRESET, BUTTON_ENTER|BUTTON_REL, BUTTON_ENTER }, | 157 | { ACTION_FM_PRESET, BUTTON_ENTER|BUTTON_REL, BUTTON_ENTER }, |
164 | /* { ACTION_FM_RECORD, BUTTON_, BUTTON_ }, */ | 158 | /* { ACTION_FM_RECORD, BUTTON_, BUTTON_ }, */ |
165 | /* { ACTION_FM_FREEZE, BUTTON_, BUTTON_ }, */ | 159 | /* { ACTION_FM_FREEZE, BUTTON_, BUTTON_ }, */ |
166 | { ACTION_FM_STOP, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE }, | 160 | { ACTION_FM_STOP, BUTTON_MENU|BUTTON_REPEAT, BUTTON_NONE }, |
167 | { ACTION_FM_MODE, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY }, | 161 | { ACTION_FM_MODE, BUTTON_PLAY|BUTTON_REPEAT, BUTTON_PLAY }, |
168 | { ACTION_FM_EXIT, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, | 162 | { ACTION_FM_EXIT, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, |
169 | { ACTION_FM_PLAY, BUTTON_PLAY|BUTTON_REL, BUTTON_PLAY }, | 163 | { ACTION_FM_PLAY, BUTTON_PLAY|BUTTON_REL, BUTTON_PLAY }, |
170 | /* { ACTION_FM_RECORD_DBLPRE, BUTTON_, BUTTON_ }, */ | 164 | /* { ACTION_FM_RECORD_DBLPRE, BUTTON_, BUTTON_ }, */ |
171 | { ACTION_FM_NEXT_PRESET, BUTTON_FF, BUTTON_NONE }, | 165 | { ACTION_FM_NEXT_PRESET, BUTTON_FF, BUTTON_NONE }, |
172 | { ACTION_FM_PREV_PRESET, BUTTON_REW, BUTTON_NONE }, | 166 | { ACTION_FM_PREV_PRESET, BUTTON_REW, BUTTON_NONE }, |
173 | 167 | ||
174 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS) | 168 | LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS) |
175 | }; /* button_context_radio */ | 169 | }; /* button_context_radio */ |
@@ -231,10 +225,10 @@ const struct button_mapping* get_context_mapping(int context) | |||
231 | 225 | ||
232 | case CONTEXT_BOOKMARKSCREEN: | 226 | case CONTEXT_BOOKMARKSCREEN: |
233 | return button_context_bmark; | 227 | return button_context_bmark; |
234 | 228 | /* | |
235 | // case CONTEXT_QUICKSCREEN: | 229 | case CONTEXT_QUICKSCREEN: |
236 | // return button_context_quickscreen; | 230 | return button_context_quickscreen; |
237 | 231 | */ | |
238 | case CONTEXT_PITCHSCREEN: | 232 | case CONTEXT_PITCHSCREEN: |
239 | return button_context_pitchscreen; | 233 | return button_context_pitchscreen; |
240 | 234 | ||
@@ -244,10 +238,9 @@ const struct button_mapping* get_context_mapping(int context) | |||
244 | 238 | ||
245 | case CONTEXT_SETTINGS: | 239 | case CONTEXT_SETTINGS: |
246 | case CONTEXT_SETTINGS_EQ: | 240 | case CONTEXT_SETTINGS_EQ: |
247 | return button_context_settings; | ||
248 | |||
249 | case CONTEXT_SETTINGS_TIME: | 241 | case CONTEXT_SETTINGS_TIME: |
250 | return button_context_time; | 242 | case CONTEXT_SETTINGS_RECTRIGGER: |
243 | return button_context_settings; | ||
251 | 244 | ||
252 | case CONTEXT_TREE: | 245 | case CONTEXT_TREE: |
253 | case CONTEXT_MAINMENU: | 246 | case CONTEXT_MAINMENU: |