1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2006 Jonathan Gordon
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 /* Button Code Definitions for iriver h100/h300 target */
30 #include "lcd-remote.h" /* for remote_type() */
34 * The format of the list is as follows
35 * { Action Code, Button code, Prereq button code }
36 * if there's no need to check the previous button's value, use BUTTON_NONE
37 * Insert LAST_ITEM_IN_LIST at the end of each mapping
40 /* CONTEXT_CUSTOM's used in this file...
42 CONTEXT_CUSTOM|CONTEXT_TREE = the standard list/tree defines (without directions)
43 CONTEXT_CUSTOM|CONTEXT_SETTINGS = the direction keys for the eq/col picker screens
44 i.e where up/down is inc/dec
45 CONTEXT_SETTINGS = up/down is prev/next, l/r is inc/dec
50 static const struct button_mapping button_context_standard
[] = {
51 { ACTION_STD_PREV
, BUTTON_UP
, BUTTON_NONE
},
52 { ACTION_STD_PREVREPEAT
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
53 { ACTION_STD_NEXT
, BUTTON_DOWN
, BUTTON_NONE
},
54 { ACTION_STD_NEXTREPEAT
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
56 { ACTION_STD_CANCEL
, BUTTON_LEFT
, BUTTON_NONE
},
57 { ACTION_STD_CANCEL
, BUTTON_OFF
, BUTTON_NONE
},
59 { ACTION_STD_CONTEXT
, BUTTON_SELECT
|BUTTON_REPEAT
,BUTTON_SELECT
},
61 { ACTION_STD_QUICKSCREEN
, BUTTON_MODE
|BUTTON_REPEAT
, BUTTON_MODE
},
62 { ACTION_STD_MENU
, BUTTON_MODE
|BUTTON_REL
, BUTTON_MODE
},
63 { ACTION_STD_OK
, BUTTON_SELECT
|BUTTON_REL
, BUTTON_SELECT
},
64 { ACTION_STD_OK
, BUTTON_RIGHT
, BUTTON_NONE
},
65 { ACTION_STD_OK
, BUTTON_ON
|BUTTON_REL
, BUTTON_NONE
},
66 { ACTION_STD_REC
, BUTTON_REC
|BUTTON_REPEAT
, BUTTON_NONE
},
69 }; /* button_context_standard */
71 static const struct button_mapping button_context_wps
[] = {
72 { ACTION_WPS_PLAY
, BUTTON_ON
|BUTTON_REL
, BUTTON_ON
},
73 { ACTION_WPS_SKIPNEXT
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_RIGHT
},
74 { ACTION_WPS_SKIPPREV
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_LEFT
},
75 { ACTION_WPS_SEEKBACK
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
76 { ACTION_WPS_SEEKFWD
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
77 { ACTION_WPS_STOPSEEK
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_LEFT
|BUTTON_REPEAT
},
78 { ACTION_WPS_STOPSEEK
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_RIGHT
|BUTTON_REPEAT
},
79 { ACTION_WPS_ABSETB_NEXTDIR
, BUTTON_ON
|BUTTON_RIGHT
, BUTTON_NONE
},
80 { ACTION_WPS_ABSETA_PREVDIR
, BUTTON_ON
|BUTTON_LEFT
, BUTTON_NONE
},
81 { ACTION_WPS_STOP
, BUTTON_OFF
|BUTTON_REL
, BUTTON_OFF
},
82 { ACTION_WPS_VOLDOWN
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
83 { ACTION_WPS_VOLDOWN
, BUTTON_DOWN
, BUTTON_NONE
},
84 { ACTION_WPS_VOLUP
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
85 { ACTION_WPS_VOLUP
, BUTTON_UP
, BUTTON_NONE
},
86 { ACTION_WPS_PITCHSCREEN
, BUTTON_ON
|BUTTON_UP
, BUTTON_ON
},
87 { ACTION_WPS_PITCHSCREEN
, BUTTON_ON
|BUTTON_DOWN
, BUTTON_ON
},
88 { ACTION_WPS_QUICKSCREEN
, BUTTON_MODE
|BUTTON_REPEAT
, BUTTON_MODE
},
89 { ACTION_WPS_MENU
, BUTTON_MODE
|BUTTON_REL
, BUTTON_MODE
},
90 { ACTION_WPS_CONTEXT
, BUTTON_SELECT
|BUTTON_REPEAT
, BUTTON_SELECT
},
91 { ACTION_WPS_BROWSE
, BUTTON_SELECT
|BUTTON_REL
, BUTTON_SELECT
},
92 { ACTION_WPS_ABRESET
, BUTTON_ON
|BUTTON_SELECT
, BUTTON_ON
},
93 { ACTION_WPS_ID3SCREEN
, BUTTON_ON
|BUTTON_MODE
, BUTTON_NONE
},
94 { ACTION_WPS_REC
, BUTTON_REC
|BUTTON_REPEAT
, BUTTON_NONE
},
97 }; /* button_context_wps */
99 static const struct button_mapping button_context_list
[] = {
100 { ACTION_LISTTREE_PGUP
, BUTTON_ON
|BUTTON_UP
, BUTTON_ON
},
101 { ACTION_LISTTREE_PGUP
, BUTTON_UP
|BUTTON_REL
, BUTTON_ON
|BUTTON_UP
},
102 { ACTION_LISTTREE_PGUP
, BUTTON_ON
|BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
103 { ACTION_LISTTREE_PGDOWN
, BUTTON_ON
|BUTTON_DOWN
, BUTTON_ON
},
104 { ACTION_LISTTREE_PGDOWN
, BUTTON_DOWN
|BUTTON_REL
, BUTTON_ON
|BUTTON_DOWN
},
105 { ACTION_LISTTREE_PGDOWN
, BUTTON_ON
|BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
106 { ACTION_NONE
, BUTTON_ON
|BUTTON_REL
, BUTTON_NONE
},
107 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
108 }; /* button_context_list */
110 static const struct button_mapping button_context_tree
[] = {
111 { ACTION_TREE_WPS
, BUTTON_ON
|BUTTON_REL
, BUTTON_ON
},
112 { ACTION_TREE_STOP
, BUTTON_OFF
, BUTTON_NONE
},
113 { ACTION_TREE_STOP
, BUTTON_OFF
|BUTTON_REPEAT
, BUTTON_NONE
},
115 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST
)
116 }; /* button_context_tree */
118 static const struct button_mapping button_context_listtree_scroll_with_combo
[] = {
119 { ACTION_NONE
, BUTTON_ON
, BUTTON_NONE
},
120 { ACTION_TREE_PGLEFT
, BUTTON_ON
|BUTTON_LEFT
, BUTTON_ON
},
121 { ACTION_TREE_PGLEFT
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_ON
|BUTTON_LEFT
},
122 { ACTION_TREE_PGLEFT
, BUTTON_ON
|BUTTON_LEFT
, BUTTON_LEFT
|BUTTON_REL
},
123 { ACTION_TREE_ROOT_INIT
, BUTTON_ON
|BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_ON
|BUTTON_LEFT
},
124 { ACTION_TREE_PGLEFT
, BUTTON_ON
|BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
125 { ACTION_TREE_PGRIGHT
, BUTTON_ON
|BUTTON_RIGHT
, BUTTON_ON
},
126 { ACTION_TREE_PGRIGHT
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_ON
|BUTTON_RIGHT
},
127 { ACTION_TREE_PGRIGHT
, BUTTON_ON
|BUTTON_RIGHT
, BUTTON_RIGHT
|BUTTON_REL
},
128 { ACTION_TREE_PGRIGHT
, BUTTON_ON
|BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
129 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM
|CONTEXT_TREE
),
132 static const struct button_mapping button_context_listtree_scroll_without_combo
[] = {
133 { ACTION_NONE
, BUTTON_LEFT
, BUTTON_NONE
},
134 { ACTION_STD_CANCEL
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_LEFT
},
135 { ACTION_TREE_ROOT_INIT
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_LEFT
},
136 { ACTION_TREE_PGLEFT
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
137 { ACTION_TREE_PGLEFT
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_LEFT
|BUTTON_REPEAT
},
138 { ACTION_NONE
, BUTTON_RIGHT
, BUTTON_NONE
},
139 { ACTION_STD_OK
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_RIGHT
},
140 { ACTION_TREE_PGRIGHT
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
141 { ACTION_TREE_PGRIGHT
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_RIGHT
|BUTTON_REPEAT
},
142 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM
|CONTEXT_TREE
),
145 static const struct button_mapping button_context_settings
[] = {
146 { ACTION_SETTINGS_INC
, BUTTON_UP
, BUTTON_NONE
},
147 { ACTION_SETTINGS_INCREPEAT
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
148 { ACTION_SETTINGS_DEC
, BUTTON_DOWN
, BUTTON_NONE
},
149 { ACTION_SETTINGS_DECREPEAT
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
150 { ACTION_STD_PREV
, BUTTON_LEFT
, BUTTON_NONE
},
151 { ACTION_STD_PREVREPEAT
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
152 { ACTION_STD_NEXT
, BUTTON_RIGHT
, BUTTON_NONE
},
153 { ACTION_STD_NEXTREPEAT
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
154 { ACTION_SETTINGS_RESET
, BUTTON_ON
, BUTTON_NONE
},
156 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
157 }; /* button_context_settings */
159 static const struct button_mapping button_context_settings_right_is_inc
[] = {
160 { ACTION_SETTINGS_INC
, BUTTON_RIGHT
, BUTTON_NONE
},
161 { ACTION_SETTINGS_INCREPEAT
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
162 { ACTION_SETTINGS_DEC
, BUTTON_LEFT
, BUTTON_NONE
},
163 { ACTION_SETTINGS_DECREPEAT
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
164 { ACTION_STD_PREV
, BUTTON_UP
, BUTTON_NONE
},
165 { ACTION_STD_PREVREPEAT
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
166 { ACTION_STD_NEXT
, BUTTON_DOWN
, BUTTON_NONE
},
167 { ACTION_STD_NEXTREPEAT
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
168 { ACTION_SETTINGS_RESET
, BUTTON_ON
, BUTTON_NONE
},
170 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
171 }; /* button_context_settingsgraphical */
173 static const struct button_mapping button_context_yesno
[] = {
174 { ACTION_YESNO_ACCEPT
, BUTTON_SELECT
, BUTTON_NONE
},
175 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
176 }; /* button_context_settings_yesno */
178 static const struct button_mapping button_context_colorchooser
[] = {
179 { ACTION_STD_OK
, BUTTON_ON
|BUTTON_REL
, BUTTON_NONE
},
180 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM
|CONTEXT_SETTINGS
),
181 }; /* button_context_settings_colorchooser */
183 static const struct button_mapping button_context_eq
[] = {
184 { ACTION_STD_OK
, BUTTON_SELECT
|BUTTON_REL
, BUTTON_NONE
},
185 { ACTION_NONE
, BUTTON_ON
|BUTTON_REL
, BUTTON_NONE
},
186 { ACTION_SETTINGS_INCBIGSTEP
, BUTTON_ON
|BUTTON_RIGHT
, BUTTON_ON
},
187 { ACTION_SETTINGS_INCBIGSTEP
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_ON
|BUTTON_RIGHT
},
188 { ACTION_SETTINGS_INCBIGSTEP
, BUTTON_ON
|BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
189 { ACTION_SETTINGS_DECBIGSTEP
, BUTTON_ON
|BUTTON_LEFT
, BUTTON_ON
},
190 { ACTION_SETTINGS_DECBIGSTEP
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_ON
|BUTTON_LEFT
},
191 { ACTION_SETTINGS_DECBIGSTEP
, BUTTON_ON
|BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
192 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM
|CONTEXT_SETTINGS
),
193 }; /* button_context_settings_context_eq */
195 static const struct button_mapping button_context_bmark
[] = {
196 { ACTION_BMS_DELETE
, BUTTON_REC
, BUTTON_NONE
},
197 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST
),
198 }; /* button_context_settings_bmark */
200 static const struct button_mapping button_context_time
[] = {
201 { ACTION_STD_CANCEL
, BUTTON_OFF
, BUTTON_NONE
},
202 { ACTION_STD_OK
, BUTTON_ON
, BUTTON_NONE
},
203 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS
),
204 }; /* button_context_settings_bmark */
206 static const struct button_mapping button_context_quickscreen
[] = {
207 { ACTION_QS_DOWNINV
, BUTTON_UP
, BUTTON_NONE
},
208 { ACTION_QS_DOWNINV
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
209 { ACTION_QS_DOWN
, BUTTON_DOWN
, BUTTON_NONE
},
210 { ACTION_QS_DOWN
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
211 { ACTION_QS_LEFT
, BUTTON_LEFT
, BUTTON_NONE
},
212 { ACTION_QS_LEFT
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
213 { ACTION_QS_RIGHT
, BUTTON_RIGHT
, BUTTON_NONE
},
214 { ACTION_QS_RIGHT
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
215 { ACTION_STD_CANCEL
, BUTTON_MODE
, BUTTON_NONE
},
217 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
218 }; /* button_context_quickscreen */
220 static const struct button_mapping button_context_pitchscreen
[] = {
221 { ACTION_PS_INC_SMALL
, BUTTON_UP
, BUTTON_NONE
},
222 { ACTION_PS_INC_BIG
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
223 { ACTION_PS_DEC_SMALL
, BUTTON_DOWN
, BUTTON_NONE
},
224 { ACTION_PS_DEC_BIG
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
225 { ACTION_PS_NUDGE_LEFT
, BUTTON_LEFT
, BUTTON_NONE
},
226 { ACTION_PS_NUDGE_LEFTOFF
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_NONE
},
227 { ACTION_PS_NUDGE_RIGHT
, BUTTON_RIGHT
, BUTTON_NONE
},
228 { ACTION_PS_NUDGE_RIGHTOFF
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_NONE
},
229 { ACTION_PS_TOGGLE_MODE
, BUTTON_MODE
, BUTTON_NONE
},
230 { ACTION_PS_RESET
, BUTTON_SELECT
, BUTTON_NONE
},
231 { ACTION_PS_EXIT
, BUTTON_ON
, BUTTON_NONE
},
232 { ACTION_PS_EXIT
, BUTTON_OFF
, BUTTON_NONE
},
234 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
235 }; /* button_context_pitchcreen */
237 static const struct button_mapping button_context_recscreen
[] = {
238 { ACTION_REC_PAUSE
, BUTTON_ON
, BUTTON_NONE
},
239 { ACTION_REC_NEWFILE
, BUTTON_REC
, BUTTON_NONE
},
240 { ACTION_SETTINGS_INC
, BUTTON_RIGHT
, BUTTON_NONE
},
241 { ACTION_SETTINGS_INCREPEAT
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
242 { ACTION_SETTINGS_DEC
, BUTTON_LEFT
, BUTTON_NONE
},
243 { ACTION_SETTINGS_DECREPEAT
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
245 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
246 }; /* button_context_recscreen */
248 static const struct button_mapping button_context_keyboard
[] = {
249 { ACTION_KBD_LEFT
, BUTTON_LEFT
, BUTTON_NONE
},
250 { ACTION_KBD_LEFT
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
251 { ACTION_KBD_RIGHT
, BUTTON_RIGHT
, BUTTON_NONE
},
252 { ACTION_KBD_RIGHT
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
253 { ACTION_KBD_CURSOR_LEFT
, BUTTON_ON
|BUTTON_LEFT
, BUTTON_NONE
},
254 { ACTION_KBD_CURSOR_LEFT
, BUTTON_ON
|BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
255 { ACTION_KBD_CURSOR_RIGHT
, BUTTON_ON
|BUTTON_RIGHT
, BUTTON_NONE
},
256 { ACTION_KBD_CURSOR_RIGHT
, BUTTON_ON
|BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
257 { ACTION_KBD_SELECT
, BUTTON_SELECT
, BUTTON_NONE
},
258 { ACTION_KBD_PAGE_FLIP
, BUTTON_MODE
, BUTTON_NONE
},
259 { ACTION_KBD_DONE
, BUTTON_ON
|BUTTON_REL
, BUTTON_ON
},
260 { ACTION_KBD_ABORT
, BUTTON_OFF
, BUTTON_NONE
},
261 { ACTION_KBD_BACKSPACE
, BUTTON_REC
, BUTTON_NONE
},
262 { ACTION_KBD_BACKSPACE
, BUTTON_REC
|BUTTON_REPEAT
, BUTTON_NONE
},
263 { ACTION_KBD_UP
, BUTTON_UP
, BUTTON_NONE
},
264 { ACTION_KBD_UP
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
265 { ACTION_KBD_DOWN
, BUTTON_DOWN
, BUTTON_NONE
},
266 { ACTION_KBD_DOWN
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
267 { ACTION_KBD_MORSE_INPUT
, BUTTON_ON
|BUTTON_MODE
, BUTTON_NONE
},
268 { ACTION_KBD_MORSE_SELECT
, BUTTON_SELECT
|BUTTON_REL
, BUTTON_NONE
},
271 }; /* button_context_keyboard */
273 static const struct button_mapping button_context_radio
[] = {
274 { ACTION_FM_MENU
, BUTTON_SELECT
| BUTTON_REPEAT
, BUTTON_NONE
},
275 { ACTION_FM_PRESET
, BUTTON_SELECT
| BUTTON_REL
, BUTTON_SELECT
},
276 { ACTION_FM_STOP
, BUTTON_OFF
, BUTTON_NONE
},
277 { ACTION_FM_MODE
, BUTTON_ON
| BUTTON_REPEAT
, BUTTON_ON
},
278 { ACTION_FM_EXIT
, BUTTON_MODE
| BUTTON_REL
, BUTTON_MODE
},
279 { ACTION_FM_PLAY
, BUTTON_ON
| BUTTON_REL
, BUTTON_ON
},
281 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS
)
285 /*****************************************************************************
286 * Remote control mappings
287 *****************************************************************************/
290 static const struct button_mapping button_context_standard_h100remote
[] = {
291 { ACTION_STD_PREV
, BUTTON_RC_REW
, BUTTON_NONE
},
292 { ACTION_STD_PREVREPEAT
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
293 { ACTION_STD_NEXT
, BUTTON_RC_FF
, BUTTON_NONE
},
294 { ACTION_STD_NEXTREPEAT
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
296 { ACTION_STD_CANCEL
, BUTTON_RC_STOP
, BUTTON_NONE
},
297 { ACTION_STD_CONTEXT
, BUTTON_RC_MENU
|BUTTON_REPEAT
, BUTTON_RC_MENU
},
299 { ACTION_STD_QUICKSCREEN
, BUTTON_RC_MODE
|BUTTON_REPEAT
, BUTTON_RC_MODE
},
300 { ACTION_STD_MENU
, BUTTON_RC_MODE
|BUTTON_REL
, BUTTON_RC_MODE
},
301 { ACTION_STD_OK
, BUTTON_RC_ON
, BUTTON_NONE
},
302 { ACTION_STD_OK
, BUTTON_RC_MENU
|BUTTON_REL
, BUTTON_RC_MENU
},
305 }; /* button_context_standard_h100lcdremote */
307 static const struct button_mapping button_context_standard_h300lcdremote
[] = {
308 { ACTION_STD_PREV
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
309 { ACTION_STD_PREVREPEAT
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
310 { ACTION_STD_NEXT
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
311 { ACTION_STD_NEXTREPEAT
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
313 { ACTION_STD_CANCEL
, BUTTON_RC_REW
, BUTTON_NONE
},
314 { ACTION_STD_CANCEL
, BUTTON_RC_STOP
, BUTTON_NONE
},
315 { ACTION_STD_CONTEXT
, BUTTON_RC_MENU
|BUTTON_REPEAT
, BUTTON_RC_MENU
},
316 { ACTION_STD_QUICKSCREEN
, BUTTON_RC_MODE
|BUTTON_REPEAT
, BUTTON_RC_MODE
},
317 { ACTION_STD_MENU
, BUTTON_RC_MODE
|BUTTON_REL
, BUTTON_RC_MODE
},
318 { ACTION_STD_OK
, BUTTON_RC_MENU
|BUTTON_REL
, BUTTON_RC_MENU
},
319 { ACTION_STD_OK
, BUTTON_RC_FF
, BUTTON_NONE
},
325 static const struct button_mapping button_context_wps_remotescommon
[] = {
326 { ACTION_WPS_PLAY
, BUTTON_RC_ON
|BUTTON_REL
, BUTTON_RC_ON
},
327 { ACTION_WPS_SKIPNEXT
, BUTTON_RC_FF
|BUTTON_REL
, BUTTON_RC_FF
},
328 { ACTION_WPS_SKIPPREV
, BUTTON_RC_REW
|BUTTON_REL
, BUTTON_RC_REW
},
329 { ACTION_WPS_SEEKBACK
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
330 { ACTION_WPS_SEEKFWD
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
331 { ACTION_WPS_STOPSEEK
, BUTTON_RC_REW
|BUTTON_REL
, BUTTON_RC_REW
|BUTTON_REPEAT
},
332 { ACTION_WPS_STOPSEEK
, BUTTON_RC_FF
|BUTTON_REL
, BUTTON_RC_FF
|BUTTON_REPEAT
},
333 { ACTION_WPS_ABSETB_NEXTDIR
, BUTTON_RC_BITRATE
, BUTTON_NONE
},
334 { ACTION_WPS_ABSETA_PREVDIR
, BUTTON_RC_SOURCE
, BUTTON_NONE
},
335 { ACTION_WPS_STOP
, BUTTON_RC_STOP
|BUTTON_REL
, BUTTON_RC_STOP
},
336 { ACTION_WPS_VOLDOWN
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
337 { ACTION_WPS_VOLDOWN
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
338 { ACTION_WPS_VOLUP
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
339 { ACTION_WPS_VOLUP
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
340 { ACTION_WPS_PITCHSCREEN
, BUTTON_RC_ON
|BUTTON_REPEAT
, BUTTON_NONE
},
341 { ACTION_WPS_QUICKSCREEN
, BUTTON_RC_MODE
|BUTTON_REPEAT
, BUTTON_RC_MODE
},
342 { ACTION_WPS_MENU
, BUTTON_RC_MODE
|BUTTON_REL
, BUTTON_RC_MODE
},
343 { ACTION_WPS_CONTEXT
, BUTTON_RC_MENU
|BUTTON_REPEAT
, BUTTON_NONE
},
344 { ACTION_WPS_BROWSE
, BUTTON_RC_MENU
|BUTTON_REL
, BUTTON_RC_MENU
},
345 /* Now the specific combos, because H100 & H300 LCD remotes have different
346 * keys, capable of acting as "modifier" - H100 : RC_ON; H300: RC_MENU
348 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM
|CONTEXT_REMOTE
|CONTEXT_WPS
)
352 static const struct button_mapping button_context_wps_h100remote
[] = {
353 { ACTION_WPS_ABRESET
, BUTTON_RC_ON
|BUTTON_RC_MENU
, BUTTON_RC_ON
},
354 { ACTION_WPS_ID3SCREEN
, BUTTON_RC_ON
|BUTTON_RC_MODE
, BUTTON_NONE
},
355 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
357 static const struct button_mapping button_context_wps_h300lcdremote
[] = {
358 { ACTION_WPS_ABRESET
, BUTTON_RC_MENU
|BUTTON_RC_ON
, BUTTON_RC_MENU
},
359 { ACTION_WPS_ID3SCREEN
, BUTTON_RC_MENU
|BUTTON_RC_MODE
, BUTTON_NONE
},
360 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
363 static const struct button_mapping button_context_list_h100remote
[] = {
364 { ACTION_LISTTREE_PGUP
, BUTTON_RC_SOURCE
, BUTTON_NONE
},
365 { ACTION_LISTTREE_PGUP
, BUTTON_RC_SOURCE
|BUTTON_REPEAT
, BUTTON_NONE
},
366 { ACTION_LISTTREE_PGDOWN
, BUTTON_RC_BITRATE
, BUTTON_NONE
},
367 { ACTION_LISTTREE_PGDOWN
, BUTTON_RC_BITRATE
|BUTTON_REPEAT
, BUTTON_NONE
},
368 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
371 static const struct button_mapping
*button_context_list_h300lcdremote
=
372 button_context_list_h100remote
;
375 static const struct button_mapping button_context_tree_h100remote
[] = {
376 { ACTION_TREE_WPS
, BUTTON_RC_ON
, BUTTON_NONE
},
378 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST
|CONTEXT_REMOTE
)
379 }; /* button_context_tree_h100remote */
381 static const struct button_mapping button_context_tree_h300lcdremote
[] = {
382 { ACTION_TREE_STOP
, BUTTON_RC_STOP
, BUTTON_NONE
},
383 { ACTION_TREE_WPS
, BUTTON_RC_ON
, BUTTON_NONE
},
384 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST
|CONTEXT_REMOTE
)
385 }; /* button_context_tree_h300lcdremote */
388 static const struct button_mapping button_context_listtree_scroll_w_cmb_h100remote
[] = {
389 { ACTION_TREE_PGLEFT
, BUTTON_RC_ON
|BUTTON_RC_REW
, BUTTON_RC_ON
},
390 { ACTION_TREE_PGLEFT
, BUTTON_RC_REW
|BUTTON_REL
, BUTTON_RC_ON
|BUTTON_RC_REW
},
391 { ACTION_TREE_PGLEFT
, BUTTON_RC_ON
|BUTTON_RC_REW
, BUTTON_RC_REW
|BUTTON_REL
},
392 { ACTION_TREE_PGLEFT
, BUTTON_RC_ON
|BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
393 { ACTION_TREE_PGLEFT
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
394 { ACTION_TREE_PGLEFT
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
395 { ACTION_TREE_PGRIGHT
, BUTTON_RC_ON
|BUTTON_RC_FF
, BUTTON_RC_ON
},
396 { ACTION_TREE_PGRIGHT
, BUTTON_RC_FF
|BUTTON_REL
, BUTTON_RC_ON
|BUTTON_RC_FF
},
397 { ACTION_TREE_PGRIGHT
, BUTTON_RC_ON
|BUTTON_RC_FF
, BUTTON_RC_FF
|BUTTON_REL
},
398 { ACTION_TREE_PGRIGHT
, BUTTON_RC_ON
|BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
399 { ACTION_TREE_PGRIGHT
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
400 { ACTION_TREE_PGRIGHT
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
401 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM
|CONTEXT_TREE
|CONTEXT_REMOTE
),
404 static const struct button_mapping button_context_listtree_scroll_w_cmb_h300lcdremote
[] = {
405 { ACTION_TREE_PGLEFT
, BUTTON_RC_MENU
|BUTTON_RC_SOURCE
, BUTTON_RC_MENU
},
406 { ACTION_TREE_PGLEFT
, BUTTON_RC_SOURCE
|BUTTON_REL
, BUTTON_RC_MENU
|BUTTON_RC_SOURCE
},
407 { ACTION_TREE_PGLEFT
, BUTTON_RC_MENU
|BUTTON_RC_SOURCE
, BUTTON_RC_SOURCE
|BUTTON_REL
},
408 { ACTION_TREE_ROOT_INIT
, BUTTON_RC_MENU
|BUTTON_RC_SOURCE
|BUTTON_REPEAT
, BUTTON_RC_MENU
|BUTTON_RC_SOURCE
},
409 { ACTION_TREE_PGLEFT
, BUTTON_RC_MENU
|BUTTON_RC_SOURCE
|BUTTON_REPEAT
, BUTTON_NONE
},
410 { ACTION_TREE_PGRIGHT
, BUTTON_RC_MENU
|BUTTON_RC_BITRATE
, BUTTON_RC_MENU
},
411 { ACTION_TREE_PGRIGHT
, BUTTON_RC_BITRATE
|BUTTON_REL
, BUTTON_RC_MENU
|BUTTON_RC_BITRATE
},
412 { ACTION_TREE_PGRIGHT
, BUTTON_RC_MENU
|BUTTON_RC_BITRATE
, BUTTON_RC_BITRATE
|BUTTON_REL
},
413 { ACTION_TREE_PGRIGHT
, BUTTON_RC_MENU
|BUTTON_RC_BITRATE
|BUTTON_REPEAT
, BUTTON_NONE
},
414 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM
|CONTEXT_TREE
|CONTEXT_REMOTE
),
417 static const struct button_mapping button_context_listtree_scroll_wo_cmb_h100remote
[] = {
418 { ACTION_TREE_PGLEFT
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
419 { ACTION_TREE_ROOT_INIT
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_RC_VOL_DOWN
},
420 { ACTION_TREE_PGLEFT
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
421 { ACTION_TREE_PGRIGHT
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
422 { ACTION_TREE_PGRIGHT
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
423 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM
|CONTEXT_TREE
|CONTEXT_REMOTE
),
426 static const struct button_mapping button_context_listtree_scroll_wo_cmb_h300lcdremote
[] = {
427 { ACTION_NONE
, BUTTON_RC_REW
, BUTTON_NONE
},
428 { ACTION_STD_CANCEL
, BUTTON_RC_REW
|BUTTON_REL
, BUTTON_RC_REW
},
429 { ACTION_TREE_ROOT_INIT
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_RC_REW
},
430 { ACTION_TREE_PGLEFT
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
431 { ACTION_TREE_PGLEFT
, BUTTON_RC_REW
|BUTTON_REL
, BUTTON_RC_REW
|BUTTON_REPEAT
},
432 { ACTION_NONE
, BUTTON_RC_FF
, BUTTON_NONE
},
433 { ACTION_STD_OK
, BUTTON_RC_FF
|BUTTON_REL
, BUTTON_RC_FF
},
434 { ACTION_TREE_PGRIGHT
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
435 { ACTION_TREE_PGRIGHT
, BUTTON_RC_FF
|BUTTON_REL
, BUTTON_RC_FF
|BUTTON_REPEAT
},
436 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM
|CONTEXT_TREE
|CONTEXT_REMOTE
),
439 static const struct button_mapping button_context_settings_h100remote
[] = {
440 { ACTION_SETTINGS_INC
, BUTTON_RC_REW
, BUTTON_NONE
},
441 { ACTION_SETTINGS_INCREPEAT
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
442 { ACTION_SETTINGS_DEC
, BUTTON_RC_FF
, BUTTON_NONE
},
443 { ACTION_SETTINGS_DECREPEAT
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
444 /* { ACTION_NONE, BUTTON_RC_ON, BUTTON_NONE },
445 { ACTION_NONE, BUTTON_RC_STOP, BUTTON_NONE },
446 { ACTION_NONE, BUTTON_RC_MENU|BUTTON_REL, BUTTON_NONE },
448 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
449 }; /* button_context_settings */
451 static const struct button_mapping button_context_settings_h300lcdremote
[] = {
452 { ACTION_SETTINGS_INC
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
453 { ACTION_SETTINGS_INCREPEAT
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
454 { ACTION_SETTINGS_DEC
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
455 { ACTION_SETTINGS_DECREPEAT
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
456 { ACTION_NONE
, BUTTON_RC_REW
, BUTTON_NONE
},
457 { ACTION_NONE
, BUTTON_RC_FF
, BUTTON_NONE
},
459 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
460 }; /* button_context_settings */
464 static const struct button_mapping button_context_settingsgraphical_h100remote
[] = {
465 { ACTION_SETTINGS_INC
, BUTTON_RC_FF
, BUTTON_NONE
},
466 { ACTION_SETTINGS_INCREPEAT
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
467 { ACTION_SETTINGS_DEC
, BUTTON_RC_REW
, BUTTON_NONE
},
468 { ACTION_SETTINGS_DECREPEAT
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
469 { ACTION_STD_PREV
, BUTTON_RC_SOURCE
, BUTTON_NONE
},
470 { ACTION_STD_PREVREPEAT
, BUTTON_RC_SOURCE
|BUTTON_REPEAT
, BUTTON_NONE
},
471 { ACTION_STD_NEXT
, BUTTON_RC_BITRATE
, BUTTON_NONE
},
472 { ACTION_STD_NEXTREPEAT
, BUTTON_RC_BITRATE
|BUTTON_REPEAT
, BUTTON_NONE
},
474 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
475 }; /* button_context_settingsgraphical_h100remote */
477 static const struct button_mapping button_context_settingsgraphical_h300lcdremote
[] = {
478 { ACTION_SETTINGS_INC
, BUTTON_RC_FF
, BUTTON_NONE
},
479 { ACTION_SETTINGS_INCREPEAT
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
480 { ACTION_SETTINGS_DEC
, BUTTON_RC_REW
, BUTTON_NONE
},
481 { ACTION_SETTINGS_DECREPEAT
, BUTTON_RC_REW
|BUTTON_REPEAT
,BUTTON_NONE
},
482 { ACTION_STD_PREV
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
483 { ACTION_STD_PREVREPEAT
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
484 { ACTION_STD_NEXT
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
485 { ACTION_STD_NEXTREPEAT
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
487 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
488 }; /* button_context_settingsgraphical_h300remote */
490 static const struct button_mapping button_context_yesno_h100remote
[] = {
491 { ACTION_YESNO_ACCEPT
, BUTTON_RC_MENU
, BUTTON_NONE
},
492 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
493 }; /* button_context_settings_yesno */
495 static const struct button_mapping
*button_context_yesno_h300lcdremote
=
496 button_context_yesno_h100remote
;
498 static const struct button_mapping button_context_bmark_h100remote
[] = {
499 { ACTION_BMS_DELETE
, BUTTON_RC_REC
, BUTTON_NONE
},
500 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST
)
501 }; /* button_context_settings_bmark */
503 static const struct button_mapping
*button_context_bmark_h300lcdremote
=
504 button_context_bmark_h100remote
;
506 static const struct button_mapping button_context_quickscreen_nonlcdremote
[] = {
507 { ACTION_QS_DOWNINV
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
508 { ACTION_QS_DOWNINV
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
509 { ACTION_QS_DOWN
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
510 { ACTION_QS_DOWN
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
511 { ACTION_QS_LEFT
, BUTTON_RC_REW
, BUTTON_NONE
},
512 { ACTION_QS_LEFT
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
513 { ACTION_QS_RIGHT
, BUTTON_RC_FF
, BUTTON_NONE
},
514 { ACTION_QS_RIGHT
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
515 { ACTION_STD_CANCEL
, BUTTON_RC_ON
, BUTTON_NONE
},
517 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
518 }; /* button_context_quickscreen */
520 static const struct button_mapping button_context_quickscreen_h100lcdremote
[] = {
521 { ACTION_QS_DOWNINV
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
522 { ACTION_QS_DOWNINV
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
523 { ACTION_QS_DOWN
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
524 { ACTION_QS_DOWN
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
525 { ACTION_QS_LEFT
, BUTTON_RC_REW
, BUTTON_NONE
},
526 { ACTION_QS_LEFT
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
527 { ACTION_QS_LEFT
, BUTTON_RC_FF
, BUTTON_NONE
},
528 { ACTION_QS_LEFT
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
529 { ACTION_QS_RIGHT
, BUTTON_RC_SOURCE
, BUTTON_NONE
},
530 { ACTION_QS_RIGHT
, BUTTON_RC_SOURCE
|BUTTON_REPEAT
, BUTTON_NONE
},
531 { ACTION_QS_RIGHT
, BUTTON_RC_BITRATE
, BUTTON_NONE
},
532 { ACTION_QS_RIGHT
, BUTTON_RC_BITRATE
|BUTTON_REPEAT
, BUTTON_NONE
},
533 { ACTION_STD_CANCEL
, BUTTON_RC_MODE
, BUTTON_NONE
},
535 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
536 }; /* button_context_quickscreen */
538 static const struct button_mapping button_context_quickscreen_h300lcdremote
[] = {
539 { ACTION_QS_DOWNINV
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
540 { ACTION_QS_DOWNINV
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
541 { ACTION_QS_DOWN
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
542 { ACTION_QS_DOWN
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
543 { ACTION_QS_LEFT
, BUTTON_RC_REW
, BUTTON_NONE
},
544 { ACTION_QS_LEFT
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
545 { ACTION_QS_RIGHT
, BUTTON_RC_FF
, BUTTON_NONE
},
546 { ACTION_QS_RIGHT
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
547 { ACTION_STD_CANCEL
, BUTTON_RC_MODE
, BUTTON_NONE
},
549 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
550 }; /* button_context_quickscreen */
552 static const struct button_mapping button_context_pitchscreen_nonlcdremote
[] = {
553 { ACTION_PS_INC_SMALL
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
554 { ACTION_PS_INC_BIG
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
555 { ACTION_PS_DEC_SMALL
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
556 { ACTION_PS_DEC_BIG
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
557 { ACTION_PS_NUDGE_LEFT
, BUTTON_RC_REW
, BUTTON_NONE
},
558 { ACTION_PS_NUDGE_LEFTOFF
, BUTTON_RC_REW
|BUTTON_REL
, BUTTON_NONE
},
559 { ACTION_PS_NUDGE_RIGHT
, BUTTON_RC_FF
, BUTTON_NONE
},
560 { ACTION_PS_NUDGE_RIGHTOFF
, BUTTON_RC_FF
|BUTTON_REL
, BUTTON_NONE
},
561 { ACTION_PS_RESET
, BUTTON_RC_MENU
, BUTTON_NONE
},
562 { ACTION_PS_EXIT
, BUTTON_RC_ON
, BUTTON_NONE
},
563 { ACTION_PS_EXIT
, BUTTON_RC_STOP
, BUTTON_NONE
},
565 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
566 }; /* button_context_pitchcreen */
568 static const struct button_mapping button_context_pitchscreen_h100lcdremote
[] = {
569 { ACTION_PS_INC_SMALL
, BUTTON_RC_FF
, BUTTON_NONE
},
570 { ACTION_PS_INC_BIG
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
571 { ACTION_PS_DEC_SMALL
, BUTTON_RC_REW
, BUTTON_NONE
},
572 { ACTION_PS_DEC_BIG
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
573 { ACTION_PS_NUDGE_LEFT
, BUTTON_RC_SOURCE
, BUTTON_NONE
},
574 { ACTION_PS_NUDGE_LEFTOFF
, BUTTON_RC_SOURCE
|BUTTON_REL
, BUTTON_NONE
},
575 { ACTION_PS_NUDGE_RIGHT
, BUTTON_RC_BITRATE
, BUTTON_NONE
},
576 { ACTION_PS_NUDGE_RIGHTOFF
, BUTTON_RC_BITRATE
|BUTTON_REL
, BUTTON_NONE
},
577 { ACTION_PS_RESET
, BUTTON_RC_MENU
, BUTTON_NONE
},
578 { ACTION_PS_EXIT
, BUTTON_RC_ON
, BUTTON_NONE
},
579 { ACTION_PS_EXIT
, BUTTON_RC_STOP
, BUTTON_NONE
},
581 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
584 static const struct button_mapping button_context_pitchscreen_h300lcdremote
[] = {
585 { ACTION_PS_INC_SMALL
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
586 { ACTION_PS_INC_BIG
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
587 { ACTION_PS_DEC_SMALL
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
588 { ACTION_PS_DEC_BIG
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
589 { ACTION_PS_NUDGE_LEFT
, BUTTON_RC_REW
, BUTTON_NONE
},
590 { ACTION_PS_NUDGE_LEFTOFF
, BUTTON_RC_REW
|BUTTON_REL
, BUTTON_NONE
},
591 { ACTION_PS_NUDGE_RIGHT
, BUTTON_RC_FF
, BUTTON_NONE
},
592 { ACTION_PS_NUDGE_RIGHTOFF
, BUTTON_RC_FF
|BUTTON_REL
, BUTTON_NONE
},
593 { ACTION_PS_RESET
, BUTTON_RC_MENU
, BUTTON_NONE
},
594 { ACTION_PS_EXIT
, BUTTON_RC_ON
, BUTTON_NONE
},
595 { ACTION_PS_EXIT
, BUTTON_RC_STOP
, BUTTON_NONE
},
597 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
600 static const struct button_mapping button_context_recscreen_h100remote
[] = {
601 { ACTION_REC_LCD
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
602 { ACTION_REC_PAUSE
, BUTTON_RC_ON
, BUTTON_NONE
},
603 { ACTION_REC_NEWFILE
, BUTTON_RC_REC
, BUTTON_NONE
},
604 { ACTION_SETTINGS_INC
, BUTTON_RC_BITRATE
, BUTTON_NONE
},
605 { ACTION_SETTINGS_INCREPEAT
, BUTTON_RC_BITRATE
|BUTTON_REPEAT
, BUTTON_NONE
},
606 { ACTION_SETTINGS_DEC
, BUTTON_RC_SOURCE
, BUTTON_NONE
},
607 { ACTION_SETTINGS_DECREPEAT
, BUTTON_RC_SOURCE
|BUTTON_REPEAT
, BUTTON_NONE
},
609 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
610 }; /* button_context_recscreen_h100remote */
612 static const struct button_mapping button_context_recscreen_h300lcdremote
[] = {
613 { ACTION_REC_LCD
, BUTTON_RC_SOURCE
, BUTTON_NONE
},
614 { ACTION_REC_PAUSE
, BUTTON_RC_ON
, BUTTON_NONE
},
615 { ACTION_REC_NEWFILE
, BUTTON_RC_REC
, BUTTON_NONE
},
616 { ACTION_SETTINGS_INC
, BUTTON_RC_FF
, BUTTON_NONE
},
617 { ACTION_SETTINGS_INC
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
618 { ACTION_SETTINGS_DEC
, BUTTON_RC_REW
, BUTTON_NONE
},
619 { ACTION_SETTINGS_DEC
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
621 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
622 }; /* button_context_recscreen_h300lcdremote */
624 static const struct button_mapping button_context_keyboard_h100remote
[] = {
625 { ACTION_KBD_LEFT
, BUTTON_RC_REW
, BUTTON_NONE
},
626 { ACTION_KBD_LEFT
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
627 { ACTION_KBD_RIGHT
, BUTTON_RC_FF
, BUTTON_NONE
},
628 { ACTION_KBD_RIGHT
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
629 { ACTION_KBD_CURSOR_LEFT
, BUTTON_RC_ON
|BUTTON_RC_REW
, BUTTON_NONE
},
630 { ACTION_KBD_CURSOR_LEFT
, BUTTON_RC_ON
|BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
631 { ACTION_KBD_CURSOR_RIGHT
, BUTTON_RC_ON
|BUTTON_RC_FF
, BUTTON_NONE
},
632 { ACTION_KBD_CURSOR_RIGHT
, BUTTON_RC_ON
|BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
633 { ACTION_KBD_CURSOR_LEFT
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
634 { ACTION_KBD_CURSOR_LEFT
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
635 { ACTION_KBD_CURSOR_RIGHT
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
636 { ACTION_KBD_CURSOR_RIGHT
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
637 { ACTION_KBD_SELECT_REM
, BUTTON_RC_MENU
, BUTTON_NONE
},
638 { ACTION_KBD_PAGE_FLIP
, BUTTON_RC_MODE
, BUTTON_NONE
},
639 { ACTION_KBD_DONE
, BUTTON_RC_ON
|BUTTON_REL
, BUTTON_RC_ON
},
640 { ACTION_KBD_ABORT
, BUTTON_RC_STOP
, BUTTON_NONE
},
641 { ACTION_KBD_BACKSPACE
, BUTTON_RC_REC
, BUTTON_NONE
},
642 { ACTION_KBD_BACKSPACE
, BUTTON_RC_REC
|BUTTON_REPEAT
, BUTTON_NONE
},
643 { ACTION_KBD_UP
, BUTTON_RC_SOURCE
, BUTTON_NONE
},
644 { ACTION_KBD_UP
, BUTTON_RC_SOURCE
|BUTTON_REPEAT
, BUTTON_NONE
},
645 { ACTION_KBD_DOWN
, BUTTON_RC_BITRATE
, BUTTON_NONE
},
646 { ACTION_KBD_DOWN
, BUTTON_RC_BITRATE
|BUTTON_REPEAT
, BUTTON_NONE
},
647 { ACTION_KBD_MORSE_INPUT
, BUTTON_RC_ON
|BUTTON_RC_MODE
, BUTTON_NONE
},
648 { ACTION_KBD_MORSE_SELECT
, BUTTON_RC_MENU
|BUTTON_REL
, BUTTON_NONE
},
651 }; /* button_context_keyboard_h100remote */
653 static const struct button_mapping button_context_keyboard_h300lcdremote
[] = {
654 { ACTION_KBD_LEFT
, BUTTON_RC_REW
, BUTTON_NONE
},
655 { ACTION_KBD_LEFT
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
656 { ACTION_KBD_RIGHT
, BUTTON_RC_FF
, BUTTON_NONE
},
657 { ACTION_KBD_RIGHT
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
658 { ACTION_KBD_CURSOR_LEFT
, BUTTON_RC_SOURCE
, BUTTON_NONE
},
659 { ACTION_KBD_CURSOR_LEFT
, BUTTON_RC_SOURCE
|BUTTON_REPEAT
, BUTTON_NONE
},
660 { ACTION_KBD_CURSOR_RIGHT
, BUTTON_RC_BITRATE
, BUTTON_NONE
},
661 { ACTION_KBD_CURSOR_RIGHT
, BUTTON_RC_BITRATE
|BUTTON_REPEAT
, BUTTON_NONE
},
662 { ACTION_KBD_SELECT_REM
, BUTTON_RC_MENU
, BUTTON_NONE
},
663 { ACTION_KBD_PAGE_FLIP
, BUTTON_RC_MODE
, BUTTON_NONE
},
664 { ACTION_KBD_DONE
, BUTTON_RC_ON
, BUTTON_NONE
},
665 { ACTION_KBD_ABORT
, BUTTON_RC_STOP
, BUTTON_NONE
},
666 { ACTION_KBD_BACKSPACE
, BUTTON_RC_REC
, BUTTON_NONE
},
667 { ACTION_KBD_BACKSPACE
, BUTTON_RC_REC
|BUTTON_REPEAT
, BUTTON_NONE
},
668 { ACTION_KBD_UP
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
669 { ACTION_KBD_UP
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
670 { ACTION_KBD_DOWN
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
671 { ACTION_KBD_DOWN
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
672 { ACTION_KBD_MORSE_INPUT
, BUTTON_RC_MENU
|BUTTON_RC_MODE
, BUTTON_NONE
},
673 { ACTION_KBD_MORSE_SELECT
, BUTTON_RC_MENU
|BUTTON_REL
, BUTTON_NONE
},
676 }; /* button_context_keyboard_h300lcdremote */
678 static const struct button_mapping button_context_radio_h100remote
[] = {
679 { ACTION_FM_MENU
, BUTTON_RC_MENU
| BUTTON_REPEAT
, BUTTON_NONE
},
680 { ACTION_FM_PRESET
, BUTTON_RC_MENU
| BUTTON_REL
, BUTTON_RC_MENU
},
681 { ACTION_FM_STOP
, BUTTON_RC_STOP
, BUTTON_NONE
},
682 { ACTION_FM_MODE
, BUTTON_RC_ON
| BUTTON_REPEAT
, BUTTON_RC_ON
},
683 { ACTION_FM_EXIT
, BUTTON_RC_MODE
| BUTTON_REL
, BUTTON_RC_MODE
},
684 { ACTION_FM_PLAY
, BUTTON_RC_ON
| BUTTON_REL
, BUTTON_RC_ON
},
685 { ACTION_FM_NEXT_PRESET
, BUTTON_RC_BITRATE
, BUTTON_NONE
},
686 { ACTION_FM_PREV_PRESET
, BUTTON_RC_SOURCE
, BUTTON_NONE
},
687 { ACTION_SETTINGS_INC
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
688 { ACTION_SETTINGS_INCREPEAT
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
689 { ACTION_SETTINGS_DEC
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
690 { ACTION_SETTINGS_DECREPEAT
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
691 { ACTION_STD_PREV
, BUTTON_RC_REW
, BUTTON_NONE
},
692 { ACTION_STD_PREVREPEAT
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
693 { ACTION_STD_NEXT
, BUTTON_RC_FF
, BUTTON_NONE
},
694 { ACTION_STD_NEXTREPEAT
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
699 static const struct button_mapping button_context_radio_h300lcdremote
[] = {
700 { ACTION_FM_MENU
, BUTTON_RC_MENU
| BUTTON_REPEAT
, BUTTON_NONE
},
701 { ACTION_FM_PRESET
, BUTTON_RC_MENU
| BUTTON_REL
, BUTTON_RC_MENU
},
702 { ACTION_FM_STOP
, BUTTON_RC_STOP
, BUTTON_NONE
},
703 { ACTION_FM_MODE
, BUTTON_RC_ON
| BUTTON_REPEAT
, BUTTON_RC_ON
},
704 { ACTION_FM_EXIT
, BUTTON_RC_MODE
| BUTTON_REL
, BUTTON_RC_MODE
},
705 { ACTION_FM_PLAY
, BUTTON_RC_ON
| BUTTON_REL
, BUTTON_RC_ON
},
706 { ACTION_FM_NEXT_PRESET
, BUTTON_RC_BITRATE
, BUTTON_NONE
},
707 { ACTION_FM_PREV_PRESET
, BUTTON_RC_SOURCE
, BUTTON_NONE
},
708 { ACTION_STD_PREV
, BUTTON_RC_REW
, BUTTON_NONE
},
709 { ACTION_STD_PREVREPEAT
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
710 { ACTION_STD_NEXT
, BUTTON_RC_FF
, BUTTON_NONE
},
711 { ACTION_STD_NEXTREPEAT
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
713 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS
)
717 static const struct button_mapping button_context_time_remote
[] = {
718 { ACTION_STD_CANCEL
, BUTTON_OFF
, BUTTON_NONE
},
719 { ACTION_STD_OK
, BUTTON_ON
, BUTTON_NONE
},
720 { ACTION_SETTINGS_INC
, BUTTON_RC_BITRATE
, BUTTON_NONE
},
721 { ACTION_SETTINGS_DEC
, BUTTON_RC_SOURCE
, BUTTON_NONE
},
722 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS
),
723 }; /* button_context_settings_bmark */
725 /* the actual used tables */
726 static const struct button_mapping
727 *remote_btn_ctxt_std
= 0,
728 *remote_btn_ctxt_wps
= 0,
729 *remote_btn_ctxt_list
= 0,
730 *remote_btn_ctxt_tree
= 0,
731 *remote_btn_ctxt_listtree_scroll_w_cmb
= 0,
732 *remote_btn_ctxt_listtree_scroll_wo_cmb
= 0,
733 *remote_btn_ctxt_settings
= 0,
734 *remote_btn_ctxt_settingsgrph
= 0,
735 *remote_btn_ctxt_yesno
= 0,
736 *remote_btn_ctxt_bmark
= 0,
737 *remote_btn_ctxt_quickscreen
= 0,
738 *remote_btn_ctxt_pitchscreen
= 0,
739 *remote_btn_ctxt_recscreen
= 0,
740 *remote_btn_ctxt_keyboard
= 0,
741 *remote_btn_ctxt_radio
= 0;
743 static int _remote_type
= -1; /*safe value, forces the first press to init the mappings */
745 static void remap_remote(void)
747 _remote_type
= remote_type();
750 case REMOTETYPE_UNPLUGGED
:
751 remote_btn_ctxt_std
= NULL
;
752 remote_btn_ctxt_wps
= NULL
;
753 remote_btn_ctxt_list
= NULL
;
754 remote_btn_ctxt_tree
= NULL
;
755 remote_btn_ctxt_listtree_scroll_w_cmb
= NULL
;
756 remote_btn_ctxt_listtree_scroll_wo_cmb
= NULL
;
757 remote_btn_ctxt_settings
= NULL
;
758 remote_btn_ctxt_settingsgrph
= NULL
;
759 remote_btn_ctxt_yesno
= NULL
;
760 remote_btn_ctxt_bmark
= NULL
;
761 remote_btn_ctxt_quickscreen
= NULL
;
762 remote_btn_ctxt_pitchscreen
= NULL
;
763 remote_btn_ctxt_recscreen
= NULL
;
764 remote_btn_ctxt_keyboard
= NULL
;
765 remote_btn_ctxt_radio
= NULL
;
768 case REMOTETYPE_H100_LCD
:
769 remote_btn_ctxt_std
= button_context_standard_h100remote
,
770 remote_btn_ctxt_wps
= button_context_wps_h100remote
,
771 remote_btn_ctxt_list
= button_context_list_h100remote
,
772 remote_btn_ctxt_tree
= button_context_tree_h100remote
,
773 remote_btn_ctxt_listtree_scroll_w_cmb
774 = button_context_listtree_scroll_w_cmb_h100remote
,
775 remote_btn_ctxt_listtree_scroll_wo_cmb
776 = button_context_listtree_scroll_wo_cmb_h100remote
,
777 remote_btn_ctxt_settings
= button_context_settings_h100remote
,
778 remote_btn_ctxt_settingsgrph
779 = button_context_settingsgraphical_h100remote
,
780 remote_btn_ctxt_yesno
= button_context_yesno_h100remote
,
781 remote_btn_ctxt_bmark
= button_context_bmark_h100remote
,
782 remote_btn_ctxt_quickscreen
783 = button_context_quickscreen_h100lcdremote
,
784 remote_btn_ctxt_pitchscreen
785 = button_context_pitchscreen_h100lcdremote
,
786 remote_btn_ctxt_recscreen
787 = button_context_recscreen_h100remote
,
788 remote_btn_ctxt_keyboard
789 = button_context_keyboard_h100remote
,
790 remote_btn_ctxt_radio
791 = button_context_radio_h100remote
;
794 case REMOTETYPE_H300_LCD
:
795 remote_btn_ctxt_std
= button_context_standard_h300lcdremote
,
796 remote_btn_ctxt_wps
= button_context_wps_h300lcdremote
,
797 remote_btn_ctxt_list
= button_context_list_h300lcdremote
,
798 remote_btn_ctxt_tree
= button_context_tree_h300lcdremote
,
799 remote_btn_ctxt_listtree_scroll_w_cmb
800 = button_context_listtree_scroll_w_cmb_h300lcdremote
,
801 remote_btn_ctxt_listtree_scroll_wo_cmb
802 = button_context_listtree_scroll_wo_cmb_h300lcdremote
,
803 remote_btn_ctxt_settings
= button_context_settings_h300lcdremote
,
804 remote_btn_ctxt_settingsgrph
805 = button_context_settingsgraphical_h300lcdremote
,
806 remote_btn_ctxt_yesno
= button_context_yesno_h300lcdremote
,
807 remote_btn_ctxt_bmark
= button_context_bmark_h300lcdremote
,
808 remote_btn_ctxt_quickscreen
809 = button_context_quickscreen_h300lcdremote
,
810 remote_btn_ctxt_pitchscreen
811 = button_context_pitchscreen_h300lcdremote
,
812 remote_btn_ctxt_recscreen
813 = button_context_recscreen_h300lcdremote
,
814 remote_btn_ctxt_keyboard
815 = button_context_keyboard_h300lcdremote
,
816 remote_btn_ctxt_radio
817 = button_context_radio_h300lcdremote
;
820 case REMOTETYPE_H300_NONLCD
: /* FIXME: add its tables */
821 remote_btn_ctxt_std
= button_context_standard_h300lcdremote
,
822 remote_btn_ctxt_wps
= button_context_wps_h300lcdremote
,
823 remote_btn_ctxt_list
= button_context_list_h300lcdremote
,
824 remote_btn_ctxt_tree
= button_context_tree_h300lcdremote
,
825 remote_btn_ctxt_listtree_scroll_w_cmb
826 = button_context_listtree_scroll_w_cmb_h300lcdremote
,
827 remote_btn_ctxt_listtree_scroll_wo_cmb
828 = button_context_listtree_scroll_wo_cmb_h300lcdremote
,
829 remote_btn_ctxt_settings
= button_context_settings_h300lcdremote
,
830 remote_btn_ctxt_settingsgrph
831 = button_context_settingsgraphical_h300lcdremote
,
832 remote_btn_ctxt_yesno
= button_context_yesno_h300lcdremote
,
833 remote_btn_ctxt_bmark
= button_context_bmark_h300lcdremote
,
834 remote_btn_ctxt_quickscreen
835 = button_context_quickscreen_nonlcdremote
,
836 remote_btn_ctxt_pitchscreen
837 = button_context_pitchscreen_nonlcdremote
,
838 remote_btn_ctxt_recscreen
839 = button_context_recscreen_h300lcdremote
,
840 remote_btn_ctxt_keyboard
841 = button_context_keyboard_h300lcdremote
,
842 remote_btn_ctxt_radio
843 = button_context_radio_h300lcdremote
;
845 remote_btn_ctxt_std
=
846 remote_btn_ctxt_wps
=
847 remote_btn_ctxt_list
=
848 remote_btn_ctxt_tree
=
849 remote_btn_ctxt_listtree_scroll_w_cmb
=
850 remote_btn_ctxt_listtree_scroll_wo_cmb
=
851 remote_btn_ctxt_settings
=
852 remote_btn_ctxt_settingsgrph
=
853 remote_btn_ctxt_yesno
=
854 remote_btn_ctxt_bmark
=
855 remote_btn_ctxt_quickscreen
=
856 remote_btn_ctxt_pitchscreen
=
857 remote_btn_ctxt_recscreen
=
858 remote_btn_ctxt_keyboard
=
859 remote_btn_ctxt_radio
=
867 static const struct button_mapping
* get_context_mapping_remote(int context
)
869 if(remote_type() != _remote_type
)
871 context
^= CONTEXT_REMOTE
;
876 return remote_btn_ctxt_std
;
877 case CONTEXT_WPS
: /* common for all remotes */
878 return button_context_wps_remotescommon
;
880 case CONTEXT_CUSTOM
|CONTEXT_WPS
:
881 return remote_btn_ctxt_wps
;
884 return remote_btn_ctxt_list
;
886 case CONTEXT_MAINMENU
:
887 if (global_settings
.hold_lr_for_scroll_in_list
)
888 return remote_btn_ctxt_listtree_scroll_wo_cmb
;
890 return remote_btn_ctxt_listtree_scroll_w_cmb
;
891 case CONTEXT_CUSTOM
|CONTEXT_TREE
:
892 return remote_btn_ctxt_tree
;
893 case CONTEXT_SETTINGS_TIME
:
894 case CONTEXT_SETTINGS_RECTRIGGER
:
895 return remote_btn_ctxt_settingsgrph
;
897 case CONTEXT_SETTINGS
:
898 return remote_btn_ctxt_settings
;
900 case CONTEXT_YESNOSCREEN
:
901 return remote_btn_ctxt_yesno
;
903 case CONTEXT_BOOKMARKSCREEN
:
904 return remote_btn_ctxt_bmark
;
905 case CONTEXT_QUICKSCREEN
:
906 return remote_btn_ctxt_quickscreen
;
907 case CONTEXT_PITCHSCREEN
:
908 return remote_btn_ctxt_pitchscreen
;
909 case CONTEXT_RECSCREEN
:
910 return remote_btn_ctxt_recscreen
;
911 case CONTEXT_KEYBOARD
:
912 return remote_btn_ctxt_keyboard
;
914 return remote_btn_ctxt_radio
;
916 return remote_btn_ctxt_std
;
919 const struct button_mapping
* get_context_mapping(int context
)
921 if (context
&CONTEXT_REMOTE
)
922 return get_context_mapping_remote(context
);
927 return button_context_standard
;
929 return button_context_wps
;
932 return button_context_list
;
934 case CONTEXT_MAINMENU
:
935 if (global_settings
.hold_lr_for_scroll_in_list
)
936 return button_context_listtree_scroll_without_combo
;
938 return button_context_listtree_scroll_with_combo
;
939 case CONTEXT_CUSTOM
|CONTEXT_TREE
:
940 return button_context_tree
;
942 case CONTEXT_SETTINGS
:
943 return button_context_settings
;
944 case CONTEXT_CUSTOM
|CONTEXT_SETTINGS
:
945 case CONTEXT_SETTINGS_RECTRIGGER
:
946 return button_context_settings_right_is_inc
;
948 case CONTEXT_SETTINGS_COLOURCHOOSER
:
949 return button_context_colorchooser
;
950 case CONTEXT_SETTINGS_EQ
:
951 return button_context_eq
;
953 case CONTEXT_SETTINGS_TIME
:
954 return button_context_time
;
956 case CONTEXT_YESNOSCREEN
:
957 return button_context_yesno
;
958 case CONTEXT_BOOKMARKSCREEN
:
959 return button_context_bmark
;
960 case CONTEXT_QUICKSCREEN
:
961 return button_context_quickscreen
;
962 case CONTEXT_PITCHSCREEN
:
963 return button_context_pitchscreen
;
964 case CONTEXT_RECSCREEN
:
965 return button_context_recscreen
;
966 case CONTEXT_KEYBOARD
:
967 return button_context_keyboard
;
969 return button_context_radio
;
971 return button_context_standard
;