1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2008 Mark Arigo
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 the Olympus m:robe 100 */
33 * The format of the list is as follows
34 * { Action Code, Button code, Prereq button code }
35 * if there's no need to check the previous button's value, use BUTTON_NONE
36 * Insert LAST_ITEM_IN_LIST at the end of each mapping
39 /* CONTEXT_CUSTOM's used in this file...
41 CONTEXT_CUSTOM|CONTEXT_TREE = the standard list/tree defines (without directions)
42 CONTEXT_CUSTOM|CONTEXT_SETTINGS = the direction keys for the eq/col picker screens
43 i.e where up/down is inc/dec
44 CONTEXT_SETTINGS = up/down is prev/next, l/r is inc/dec
49 static const struct button_mapping button_context_standard
[] = {
50 { ACTION_STD_PREV
, BUTTON_UP
, BUTTON_NONE
},
51 { ACTION_STD_PREVREPEAT
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
52 { ACTION_STD_NEXT
, BUTTON_DOWN
, BUTTON_NONE
},
53 { ACTION_STD_NEXTREPEAT
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
55 { ACTION_STD_CANCEL
, BUTTON_LEFT
, BUTTON_NONE
},
56 { ACTION_STD_CANCEL
, BUTTON_DISPLAY
, BUTTON_NONE
},
57 { ACTION_STD_CANCEL
, BUTTON_POWER
, BUTTON_NONE
},
59 { ACTION_STD_CONTEXT
, BUTTON_SELECT
|BUTTON_REPEAT
,BUTTON_SELECT
},
61 { ACTION_STD_QUICKSCREEN
, BUTTON_MENU
|BUTTON_REPEAT
, BUTTON_MENU
},
62 { ACTION_STD_MENU
, BUTTON_MENU
|BUTTON_REL
, BUTTON_MENU
},
64 { ACTION_STD_OK
, BUTTON_SELECT
|BUTTON_REL
, BUTTON_SELECT
},
65 { ACTION_STD_OK
, BUTTON_RIGHT
, BUTTON_NONE
},
68 }; /* button_context_standard */
71 static const struct button_mapping button_context_wps
[] = {
72 { ACTION_WPS_PLAY
, BUTTON_PLAY
|BUTTON_REL
, BUTTON_PLAY
},
73 { ACTION_WPS_STOP
, BUTTON_POWER
|BUTTON_REL
, BUTTON_POWER
},
74 { ACTION_WPS_STOP
, BUTTON_PLAY
|BUTTON_REPEAT
, BUTTON_PLAY
},
76 { ACTION_WPS_SKIPNEXT
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_RIGHT
},
77 { ACTION_WPS_SKIPPREV
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_LEFT
},
79 { ACTION_WPS_SEEKBACK
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
80 { ACTION_WPS_SEEKFWD
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
81 { ACTION_WPS_STOPSEEK
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_LEFT
|BUTTON_REPEAT
},
82 { ACTION_WPS_STOPSEEK
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_RIGHT
|BUTTON_REPEAT
},
84 { ACTION_WPS_VOLDOWN
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
85 { ACTION_WPS_VOLDOWN
, BUTTON_DOWN
, BUTTON_NONE
},
86 { ACTION_WPS_VOLUP
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
87 { ACTION_WPS_VOLUP
, BUTTON_UP
, BUTTON_NONE
},
89 { ACTION_WPS_MENU
, BUTTON_MENU
|BUTTON_REL
, BUTTON_MENU
},
90 { ACTION_WPS_QUICKSCREEN
, BUTTON_MENU
|BUTTON_REPEAT
, BUTTON_MENU
},
92 { ACTION_WPS_BROWSE
, BUTTON_DISPLAY
|BUTTON_REL
, BUTTON_DISPLAY
},
93 { ACTION_WPS_ABSETB_NEXTDIR
,BUTTON_DISPLAY
|BUTTON_RIGHT
, BUTTON_NONE
},
94 { ACTION_WPS_ABSETA_PREVDIR
,BUTTON_DISPLAY
|BUTTON_LEFT
, BUTTON_NONE
},
95 { ACTION_WPS_ABRESET
, BUTTON_DISPLAY
|BUTTON_SELECT
, BUTTON_NONE
},
96 { ACTION_WPS_PITCHSCREEN
, BUTTON_DISPLAY
|BUTTON_UP
, BUTTON_DISPLAY
},
97 { ACTION_WPS_VIEW_PLAYLIST
, BUTTON_DISPLAY
|BUTTON_DOWN
, BUTTON_DISPLAY
},
98 { ACTION_WPS_ID3SCREEN
, BUTTON_DISPLAY
|BUTTON_MENU
, BUTTON_NONE
},
100 { ACTION_WPS_CONTEXT
, BUTTON_SELECT
|BUTTON_REPEAT
, BUTTON_SELECT
},
103 }; /* button_context_wps */
105 static const struct button_mapping button_context_list
[] = {
106 { ACTION_LISTTREE_PGUP
, BUTTON_DISPLAY
|BUTTON_UP
, BUTTON_DISPLAY
},
107 { ACTION_LISTTREE_PGUP
, BUTTON_UP
|BUTTON_REL
, BUTTON_DISPLAY
|BUTTON_UP
},
108 { ACTION_LISTTREE_PGUP
, BUTTON_DISPLAY
|BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
109 { ACTION_LISTTREE_PGDOWN
, BUTTON_DISPLAY
|BUTTON_DOWN
, BUTTON_DISPLAY
},
110 { ACTION_LISTTREE_PGDOWN
, BUTTON_DOWN
|BUTTON_REL
, BUTTON_DISPLAY
|BUTTON_DOWN
},
111 { ACTION_LISTTREE_PGDOWN
, BUTTON_DISPLAY
|BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
113 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
114 }; /* button_context_list */
116 static const struct button_mapping button_context_tree
[] = {
117 { ACTION_TREE_WPS
, BUTTON_DISPLAY
|BUTTON_REL
, BUTTON_DISPLAY
},
118 { ACTION_TREE_STOP
, BUTTON_PLAY
|BUTTON_REPEAT
, BUTTON_PLAY
},
119 { ACTION_TREE_STOP
, BUTTON_POWER
, BUTTON_NONE
},
120 { ACTION_TREE_STOP
, BUTTON_POWER
|BUTTON_REL
, BUTTON_POWER
},
121 { ACTION_TREE_STOP
, BUTTON_POWER
|BUTTON_REPEAT
, BUTTON_NONE
},
123 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST
)
124 }; /* button_context_tree */
126 static const struct button_mapping button_context_listtree_scroll_with_combo
[] = {
127 { ACTION_NONE
, BUTTON_DISPLAY
, BUTTON_NONE
},
128 { ACTION_TREE_PGLEFT
, BUTTON_DISPLAY
|BUTTON_LEFT
, BUTTON_DISPLAY
},
129 { ACTION_TREE_PGLEFT
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_DISPLAY
|BUTTON_LEFT
},
130 { ACTION_TREE_PGLEFT
, BUTTON_DISPLAY
|BUTTON_LEFT
, BUTTON_LEFT
|BUTTON_REL
},
131 { ACTION_TREE_ROOT_INIT
, BUTTON_DISPLAY
|BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_DISPLAY
|BUTTON_LEFT
},
132 { ACTION_TREE_PGLEFT
, BUTTON_DISPLAY
|BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
133 { ACTION_TREE_PGRIGHT
, BUTTON_DISPLAY
|BUTTON_RIGHT
, BUTTON_DISPLAY
},
134 { ACTION_TREE_PGRIGHT
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_DISPLAY
|BUTTON_RIGHT
},
135 { ACTION_TREE_PGRIGHT
, BUTTON_DISPLAY
|BUTTON_RIGHT
, BUTTON_RIGHT
|BUTTON_REL
},
136 { ACTION_TREE_PGRIGHT
, BUTTON_DISPLAY
|BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
138 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM
|CONTEXT_TREE
),
141 static const struct button_mapping button_context_listtree_scroll_without_combo
[] = {
142 { ACTION_NONE
, BUTTON_LEFT
, BUTTON_NONE
},
143 { ACTION_STD_CANCEL
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_LEFT
},
144 { ACTION_TREE_ROOT_INIT
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_LEFT
},
145 { ACTION_TREE_PGLEFT
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
146 { ACTION_TREE_PGLEFT
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_LEFT
|BUTTON_REPEAT
},
147 { ACTION_NONE
, BUTTON_RIGHT
, BUTTON_NONE
},
148 { ACTION_STD_OK
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_RIGHT
},
149 { ACTION_TREE_PGRIGHT
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
150 { ACTION_TREE_PGRIGHT
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_RIGHT
|BUTTON_REPEAT
},
151 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM
|CONTEXT_TREE
),
154 static const struct button_mapping button_context_settings
[] = {
155 { ACTION_SETTINGS_INC
, BUTTON_UP
, BUTTON_NONE
},
156 { ACTION_SETTINGS_INCREPEAT
,BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
157 { ACTION_SETTINGS_DEC
, BUTTON_DOWN
, BUTTON_NONE
},
158 { ACTION_SETTINGS_DECREPEAT
,BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
159 { ACTION_STD_PREV
, BUTTON_LEFT
, BUTTON_NONE
},
160 { ACTION_STD_PREVREPEAT
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
161 { ACTION_STD_NEXT
, BUTTON_RIGHT
, BUTTON_NONE
},
162 { ACTION_STD_NEXTREPEAT
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
163 { ACTION_SETTINGS_RESET
, BUTTON_DISPLAY
, BUTTON_NONE
},
165 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
166 }; /* button_context_settings */
168 static const struct button_mapping button_context_settings_right_is_inc
[] = {
169 { ACTION_SETTINGS_INC
, BUTTON_RIGHT
, BUTTON_NONE
},
170 { ACTION_SETTINGS_INCREPEAT
,BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
171 { ACTION_SETTINGS_DEC
, BUTTON_LEFT
, BUTTON_NONE
},
172 { ACTION_SETTINGS_DECREPEAT
,BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
173 { ACTION_STD_PREV
, BUTTON_UP
, BUTTON_NONE
},
174 { ACTION_STD_PREVREPEAT
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
175 { ACTION_STD_NEXT
, BUTTON_DOWN
, BUTTON_NONE
},
176 { ACTION_STD_NEXTREPEAT
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
177 { ACTION_SETTINGS_RESET
, BUTTON_DISPLAY
, BUTTON_NONE
},
179 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
180 }; /* button_context_settingsgraphical */
182 static const struct button_mapping button_context_yesno
[] = {
183 { ACTION_YESNO_ACCEPT
, BUTTON_SELECT
, BUTTON_NONE
},
185 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
186 }; /* button_context_settings_yesno */
188 static const struct button_mapping button_context_colorchooser
[] = {
189 { ACTION_STD_OK
, BUTTON_DISPLAY
|BUTTON_REL
, BUTTON_NONE
},
191 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM
|CONTEXT_SETTINGS
),
192 }; /* button_context_colorchooser */
194 static const struct button_mapping button_context_eq
[] = {
195 { ACTION_STD_OK
, BUTTON_SELECT
|BUTTON_REL
, BUTTON_NONE
},
197 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_CUSTOM
|CONTEXT_SETTINGS
),
198 }; /* button_context_eq */
200 /** Bookmark Screen **/
201 static const struct button_mapping button_context_bmark
[] = {
202 { ACTION_BMS_DELETE
, BUTTON_DISPLAY
, BUTTON_NONE
},
204 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST
),
205 }; /* button_context_bmark */
207 static const struct button_mapping button_context_time
[] = {
208 { ACTION_STD_CANCEL
, BUTTON_POWER
, BUTTON_NONE
},
209 { ACTION_STD_OK
, BUTTON_DISPLAY
, BUTTON_NONE
},
211 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_SETTINGS
),
212 }; /* button_context_time */
214 static const struct button_mapping button_context_quickscreen
[] = {
215 { ACTION_QS_TOP
, BUTTON_UP
, BUTTON_NONE
},
216 { ACTION_QS_TOP
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
217 { ACTION_QS_DOWN
, BUTTON_DOWN
, BUTTON_NONE
},
218 { ACTION_QS_DOWN
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
219 { ACTION_QS_LEFT
, BUTTON_LEFT
, BUTTON_NONE
},
220 { ACTION_QS_LEFT
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
221 { ACTION_QS_RIGHT
, BUTTON_RIGHT
, BUTTON_NONE
},
222 { ACTION_QS_RIGHT
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
223 { ACTION_STD_CANCEL
, BUTTON_MENU
, BUTTON_NONE
},
225 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
226 }; /* button_context_quickscreen */
228 static const struct button_mapping button_context_pitchscreen
[] = {
229 { ACTION_PS_INC_SMALL
, BUTTON_UP
, BUTTON_NONE
},
230 { ACTION_PS_INC_BIG
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
231 { ACTION_PS_DEC_SMALL
, BUTTON_DOWN
, BUTTON_NONE
},
232 { ACTION_PS_DEC_BIG
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
233 { ACTION_PS_NUDGE_LEFT
, BUTTON_LEFT
, BUTTON_NONE
},
234 { ACTION_PS_NUDGE_LEFTOFF
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_NONE
},
235 { ACTION_PS_NUDGE_RIGHT
, BUTTON_RIGHT
, BUTTON_NONE
},
236 { ACTION_PS_NUDGE_RIGHTOFF
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_NONE
},
237 { ACTION_PS_TOGGLE_MODE
, BUTTON_MENU
, BUTTON_NONE
},
238 { ACTION_PS_RESET
, BUTTON_DISPLAY
, BUTTON_NONE
},
239 { ACTION_PS_EXIT
, BUTTON_PLAY
, BUTTON_NONE
},
240 { ACTION_PS_SLOWER
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
241 { ACTION_PS_FASTER
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
243 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
244 }; /* button_context_pitchcreen */
246 static const struct button_mapping button_context_keyboard
[] = {
247 { ACTION_KBD_LEFT
, BUTTON_LEFT
, BUTTON_NONE
},
248 { ACTION_KBD_LEFT
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
249 { ACTION_KBD_RIGHT
, BUTTON_RIGHT
, BUTTON_NONE
},
250 { ACTION_KBD_RIGHT
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
251 { ACTION_KBD_CURSOR_LEFT
, BUTTON_DISPLAY
|BUTTON_LEFT
, BUTTON_NONE
},
252 { ACTION_KBD_CURSOR_LEFT
, BUTTON_DISPLAY
|BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
253 { ACTION_KBD_CURSOR_RIGHT
, BUTTON_DISPLAY
|BUTTON_RIGHT
, BUTTON_NONE
},
254 { ACTION_KBD_CURSOR_RIGHT
, BUTTON_DISPLAY
|BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
255 { ACTION_KBD_SELECT
, BUTTON_SELECT
, BUTTON_NONE
},
256 { ACTION_KBD_PAGE_FLIP
, BUTTON_DISPLAY
|BUTTON_MENU
, BUTTON_NONE
},
257 { ACTION_KBD_DONE
, BUTTON_DISPLAY
|BUTTON_REL
, BUTTON_DISPLAY
},
258 { ACTION_KBD_ABORT
, BUTTON_POWER
|BUTTON_REL
, BUTTON_POWER
},
259 { ACTION_KBD_BACKSPACE
, BUTTON_MENU
, BUTTON_NONE
},
260 { ACTION_KBD_BACKSPACE
, BUTTON_MENU
|BUTTON_REPEAT
, BUTTON_NONE
},
261 { ACTION_KBD_UP
, BUTTON_UP
, BUTTON_NONE
},
262 { ACTION_KBD_UP
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
263 { ACTION_KBD_DOWN
, BUTTON_DOWN
, BUTTON_NONE
},
264 { ACTION_KBD_DOWN
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
265 { ACTION_KBD_MORSE_INPUT
, BUTTON_DISPLAY
|BUTTON_POWER
, BUTTON_NONE
},
266 { ACTION_KBD_MORSE_SELECT
, BUTTON_SELECT
|BUTTON_REL
, BUTTON_NONE
},
269 }; /* button_context_keyboard */
271 /*****************************************************************************
272 * Remote control mappings
273 *****************************************************************************/
275 static const struct button_mapping remote_button_context_standard
[] = {
276 { ACTION_STD_PREV
, BUTTON_RC_PLAY
, BUTTON_NONE
},
277 { ACTION_STD_PREVREPEAT
, BUTTON_RC_PLAY
|BUTTON_REPEAT
, BUTTON_NONE
},
278 { ACTION_STD_NEXT
, BUTTON_RC_DOWN
, BUTTON_NONE
},
279 { ACTION_STD_NEXTREPEAT
, BUTTON_RC_DOWN
|BUTTON_REPEAT
,BUTTON_NONE
},
280 { ACTION_STD_CANCEL
, BUTTON_RC_REW
, BUTTON_NONE
},
281 { ACTION_STD_OK
, BUTTON_RC_FF
|BUTTON_REL
, BUTTON_RC_FF
},
282 { ACTION_STD_CONTEXT
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_RC_FF
},
283 { ACTION_STD_MENU
, BUTTON_RC_HEART
, BUTTON_NONE
},
288 static const struct button_mapping remote_button_context_wps
[] = {
289 { ACTION_WPS_PLAY
, BUTTON_RC_PLAY
, BUTTON_NONE
},
291 { ACTION_WPS_SKIPNEXT
, BUTTON_RC_FF
|BUTTON_REL
, BUTTON_RC_FF
},
292 { ACTION_WPS_SKIPPREV
, BUTTON_RC_REW
|BUTTON_REL
, BUTTON_RC_REW
},
294 { ACTION_WPS_SEEKBACK
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
295 { ACTION_WPS_SEEKFWD
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
296 { ACTION_WPS_STOPSEEK
, BUTTON_RC_REW
|BUTTON_REL
, BUTTON_RC_REW
|BUTTON_REPEAT
},
297 { ACTION_WPS_STOPSEEK
, BUTTON_RC_FF
|BUTTON_REL
, BUTTON_RC_FF
|BUTTON_REPEAT
},
299 { ACTION_WPS_STOP
, BUTTON_RC_PLAY
|BUTTON_REPEAT
, BUTTON_RC_PLAY
},
300 { ACTION_WPS_MENU
, BUTTON_RC_HEART
, BUTTON_NONE
},
302 { ACTION_WPS_VOLDOWN
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
303 { ACTION_WPS_VOLDOWN
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
304 { ACTION_WPS_VOLUP
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
305 { ACTION_WPS_VOLUP
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
307 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
310 static const struct button_mapping remote_button_context_tree
[] = {
311 { ACTION_TREE_WPS
, BUTTON_RC_PLAY
|BUTTON_REL
, BUTTON_RC_PLAY
},
312 { ACTION_TREE_STOP
, BUTTON_RC_PLAY
|BUTTON_REPEAT
, BUTTON_RC_PLAY
},
313 { ACTION_STD_CANCEL
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
315 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD
)
318 #ifdef USB_ENABLE_HID
319 static const struct button_mapping button_context_usb_hid
[] = {
320 { ACTION_USB_HID_MODE_SWITCH_NEXT
, BUTTON_POWER
|BUTTON_REL
, BUTTON_POWER
},
321 { ACTION_USB_HID_MODE_SWITCH_PREV
, BUTTON_POWER
|BUTTON_REPEAT
, BUTTON_POWER
},
324 }; /* button_context_usb_hid */
326 static const struct button_mapping button_context_usb_hid_mode_multimedia
[] = {
327 { ACTION_USB_HID_MULTIMEDIA_VOLUME_DOWN
, BUTTON_DOWN
, BUTTON_NONE
},
328 { ACTION_USB_HID_MULTIMEDIA_VOLUME_DOWN
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
329 { ACTION_USB_HID_MULTIMEDIA_VOLUME_UP
, BUTTON_UP
, BUTTON_NONE
},
330 { ACTION_USB_HID_MULTIMEDIA_VOLUME_UP
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
331 { ACTION_USB_HID_MULTIMEDIA_VOLUME_MUTE
, BUTTON_SELECT
|BUTTON_REL
, BUTTON_SELECT
},
332 { ACTION_USB_HID_MULTIMEDIA_PLAYBACK_PLAY_PAUSE
, BUTTON_PLAY
|BUTTON_REL
, BUTTON_PLAY
},
333 { ACTION_USB_HID_MULTIMEDIA_PLAYBACK_STOP
, BUTTON_DISPLAY
|BUTTON_REL
, BUTTON_DISPLAY
},
334 { ACTION_USB_HID_MULTIMEDIA_PLAYBACK_STOP
, BUTTON_PLAY
|BUTTON_REPEAT
, BUTTON_PLAY
},
335 { ACTION_USB_HID_MULTIMEDIA_PLAYBACK_TRACK_PREV
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_LEFT
},
336 { ACTION_USB_HID_MULTIMEDIA_PLAYBACK_TRACK_NEXT
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_RIGHT
},
338 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_USB_HID
)
339 }; /* button_context_usb_hid_mode_multimedia */
341 static const struct button_mapping button_context_usb_hid_mode_presentation
[] = {
342 { ACTION_USB_HID_PRESENTATION_SLIDESHOW_START
, BUTTON_PLAY
|BUTTON_REL
, BUTTON_PLAY
},
343 { ACTION_USB_HID_PRESENTATION_SLIDESHOW_LEAVE
, BUTTON_DISPLAY
|BUTTON_REL
, BUTTON_DISPLAY
},
344 { ACTION_USB_HID_PRESENTATION_SLIDESHOW_LEAVE
, BUTTON_PLAY
|BUTTON_REPEAT
, BUTTON_PLAY
},
345 { ACTION_USB_HID_PRESENTATION_SLIDE_PREV
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_LEFT
},
346 { ACTION_USB_HID_PRESENTATION_SLIDE_NEXT
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_RIGHT
},
347 { ACTION_USB_HID_PRESENTATION_SLIDE_FIRST
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_LEFT
},
348 { ACTION_USB_HID_PRESENTATION_SLIDE_LAST
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_RIGHT
},
349 { ACTION_USB_HID_PRESENTATION_SCREEN_BLACK
, BUTTON_DOWN
|BUTTON_REL
, BUTTON_DOWN
},
350 { ACTION_USB_HID_PRESENTATION_SCREEN_WHITE
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_DOWN
},
351 { ACTION_USB_HID_PRESENTATION_LINK_PREV
, BUTTON_UP
, BUTTON_NONE
},
352 { ACTION_USB_HID_PRESENTATION_LINK_PREV
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
353 { ACTION_USB_HID_PRESENTATION_LINK_NEXT
, BUTTON_DOWN
, BUTTON_NONE
},
354 { ACTION_USB_HID_PRESENTATION_LINK_NEXT
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
355 { ACTION_USB_HID_PRESENTATION_MOUSE_CLICK
, BUTTON_SELECT
|BUTTON_REL
, BUTTON_SELECT
},
356 { ACTION_USB_HID_PRESENTATION_MOUSE_OVER
, BUTTON_SELECT
|BUTTON_REPEAT
, BUTTON_SELECT
},
358 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_USB_HID
)
359 }; /* button_context_usb_hid_mode_presentation */
361 static const struct button_mapping button_context_usb_hid_mode_browser
[] = {
362 { ACTION_USB_HID_BROWSER_SCROLL_UP
, BUTTON_UP
, BUTTON_NONE
},
363 { ACTION_USB_HID_BROWSER_SCROLL_UP
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
364 { ACTION_USB_HID_BROWSER_SCROLL_DOWN
, BUTTON_DOWN
, BUTTON_NONE
},
365 { ACTION_USB_HID_BROWSER_SCROLL_DOWN
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
366 { ACTION_USB_HID_BROWSER_SCROLL_PAGE_UP
, BUTTON_PLAY
|BUTTON_REL
, BUTTON_PLAY
},
367 { ACTION_USB_HID_BROWSER_SCROLL_PAGE_DOWN
, BUTTON_MENU
|BUTTON_REL
, BUTTON_MENU
},
368 { ACTION_USB_HID_BROWSER_ZOOM_IN
, BUTTON_PLAY
|BUTTON_REPEAT
, BUTTON_PLAY
},
369 { ACTION_USB_HID_BROWSER_ZOOM_OUT
, BUTTON_MENU
|BUTTON_REPEAT
, BUTTON_MENU
},
370 { ACTION_USB_HID_BROWSER_ZOOM_RESET
, BUTTON_SELECT
|BUTTON_REPEAT
, BUTTON_SELECT
},
371 { ACTION_USB_HID_BROWSER_ZOOM_RESET
, BUTTON_PLAY
|BUTTON_MENU
|BUTTON_REPEAT
, BUTTON_PLAY
|BUTTON_MENU
},
372 { ACTION_USB_HID_BROWSER_TAB_PREV
, BUTTON_LEFT
|BUTTON_REL
, BUTTON_LEFT
},
373 { ACTION_USB_HID_BROWSER_TAB_NEXT
, BUTTON_RIGHT
|BUTTON_REL
, BUTTON_RIGHT
},
374 { ACTION_USB_HID_BROWSER_TAB_CLOSE
, BUTTON_DISPLAY
|BUTTON_REPEAT
, BUTTON_DISPLAY
},
375 { ACTION_USB_HID_BROWSER_HISTORY_BACK
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_LEFT
},
376 { ACTION_USB_HID_BROWSER_HISTORY_FORWARD
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_RIGHT
},
377 { ACTION_USB_HID_BROWSER_VIEW_FULL_SCREEN
, BUTTON_SELECT
|BUTTON_REL
, BUTTON_SELECT
},
379 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_USB_HID
)
380 }; /* button_context_usb_hid_mode_browser */
382 #ifdef HAVE_USB_HID_MOUSE
383 static const struct button_mapping button_context_usb_hid_mode_mouse
[] = {
384 { ACTION_USB_HID_MOUSE_UP
, BUTTON_UP
, BUTTON_NONE
},
385 { ACTION_USB_HID_MOUSE_UP_REP
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
386 { ACTION_USB_HID_MOUSE_DOWN
, BUTTON_DOWN
, BUTTON_NONE
},
387 { ACTION_USB_HID_MOUSE_DOWN_REP
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
388 { ACTION_USB_HID_MOUSE_LEFT
, BUTTON_LEFT
, BUTTON_NONE
},
389 { ACTION_USB_HID_MOUSE_LEFT_REP
, BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
390 { ACTION_USB_HID_MOUSE_RIGHT
, BUTTON_RIGHT
, BUTTON_NONE
},
391 { ACTION_USB_HID_MOUSE_RIGHT_REP
, BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
392 { ACTION_USB_HID_MOUSE_BUTTON_LEFT
, BUTTON_MENU
, BUTTON_NONE
},
393 { ACTION_USB_HID_MOUSE_BUTTON_LEFT_REL
, BUTTON_MENU
|BUTTON_REL
, BUTTON_NONE
},
394 { ACTION_USB_HID_MOUSE_LDRAG_UP
, BUTTON_MENU
|BUTTON_UP
, BUTTON_NONE
},
395 { ACTION_USB_HID_MOUSE_LDRAG_UP_REP
, BUTTON_MENU
|BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
396 { ACTION_USB_HID_MOUSE_LDRAG_DOWN
, BUTTON_MENU
|BUTTON_DOWN
, BUTTON_NONE
},
397 { ACTION_USB_HID_MOUSE_LDRAG_DOWN_REP
, BUTTON_MENU
|BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
398 { ACTION_USB_HID_MOUSE_LDRAG_LEFT
, BUTTON_MENU
|BUTTON_LEFT
, BUTTON_NONE
},
399 { ACTION_USB_HID_MOUSE_LDRAG_LEFT_REP
, BUTTON_MENU
|BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
400 { ACTION_USB_HID_MOUSE_LDRAG_RIGHT
, BUTTON_MENU
|BUTTON_RIGHT
, BUTTON_NONE
},
401 { ACTION_USB_HID_MOUSE_LDRAG_RIGHT_REP
, BUTTON_MENU
|BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
402 { ACTION_USB_HID_MOUSE_BUTTON_RIGHT
, BUTTON_PLAY
, BUTTON_NONE
},
403 { ACTION_USB_HID_MOUSE_BUTTON_RIGHT_REL
, BUTTON_PLAY
|BUTTON_REL
, BUTTON_NONE
},
404 { ACTION_USB_HID_MOUSE_RDRAG_UP
, BUTTON_PLAY
|BUTTON_UP
, BUTTON_NONE
},
405 { ACTION_USB_HID_MOUSE_RDRAG_UP_REP
, BUTTON_PLAY
|BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
406 { ACTION_USB_HID_MOUSE_RDRAG_DOWN
, BUTTON_PLAY
|BUTTON_DOWN
, BUTTON_NONE
},
407 { ACTION_USB_HID_MOUSE_RDRAG_DOWN_REP
, BUTTON_PLAY
|BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
408 { ACTION_USB_HID_MOUSE_RDRAG_LEFT
, BUTTON_PLAY
|BUTTON_LEFT
, BUTTON_NONE
},
409 { ACTION_USB_HID_MOUSE_RDRAG_LEFT_REP
, BUTTON_PLAY
|BUTTON_LEFT
|BUTTON_REPEAT
, BUTTON_NONE
},
410 { ACTION_USB_HID_MOUSE_RDRAG_RIGHT
, BUTTON_PLAY
|BUTTON_RIGHT
, BUTTON_NONE
},
411 { ACTION_USB_HID_MOUSE_RDRAG_RIGHT_REP
, BUTTON_PLAY
|BUTTON_RIGHT
|BUTTON_REPEAT
, BUTTON_NONE
},
412 { ACTION_USB_HID_MOUSE_WHEEL_SCROLL_UP
, BUTTON_UP
, BUTTON_NONE
},
413 { ACTION_USB_HID_MOUSE_WHEEL_SCROLL_UP
, BUTTON_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
414 { ACTION_USB_HID_MOUSE_WHEEL_SCROLL_DOWN
, BUTTON_DOWN
, BUTTON_NONE
},
415 { ACTION_USB_HID_MOUSE_WHEEL_SCROLL_DOWN
, BUTTON_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
417 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_USB_HID
)
418 }; /* button_context_usb_hid_mode_mouse */
421 static const struct button_mapping remote_button_context_usb_hid
[] = {
422 { ACTION_USB_HID_MODE_SWITCH_NEXT
, BUTTON_RC_MODE
|BUTTON_REL
, BUTTON_RC_MODE
},
423 { ACTION_USB_HID_MODE_SWITCH_PREV
, BUTTON_RC_MODE
|BUTTON_REPEAT
, BUTTON_RC_MODE
},
426 }; /* remote_button_context_usb_hid */
428 static const struct button_mapping remote_button_context_usb_hid_mode_multimedia
[] = {
429 { ACTION_USB_HID_MULTIMEDIA_VOLUME_DOWN
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
430 { ACTION_USB_HID_MULTIMEDIA_VOLUME_DOWN
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
431 { ACTION_USB_HID_MULTIMEDIA_VOLUME_UP
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
432 { ACTION_USB_HID_MULTIMEDIA_VOLUME_UP
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
433 { ACTION_USB_HID_MULTIMEDIA_VOLUME_MUTE
, BUTTON_RC_HEART
|BUTTON_REL
, BUTTON_RC_HEART
},
434 { ACTION_USB_HID_MULTIMEDIA_PLAYBACK_PLAY_PAUSE
, BUTTON_RC_PLAY
|BUTTON_REL
, BUTTON_RC_PLAY
},
435 { ACTION_USB_HID_MULTIMEDIA_PLAYBACK_STOP
, BUTTON_RC_DOWN
|BUTTON_REL
, BUTTON_RC_DOWN
},
436 { ACTION_USB_HID_MULTIMEDIA_PLAYBACK_STOP
, BUTTON_RC_PLAY
|BUTTON_REPEAT
, BUTTON_RC_PLAY
},
437 { ACTION_USB_HID_MULTIMEDIA_PLAYBACK_TRACK_PREV
, BUTTON_RC_REW
|BUTTON_REL
, BUTTON_RC_REW
},
438 { ACTION_USB_HID_MULTIMEDIA_PLAYBACK_TRACK_NEXT
, BUTTON_RC_FF
|BUTTON_REL
, BUTTON_RC_FF
},
440 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_USB_HID
)
441 }; /* remote_button_context_usb_hid_mode_multimedia */
443 static const struct button_mapping remote_button_context_usb_hid_mode_presentation
[] = {
444 { ACTION_USB_HID_PRESENTATION_SLIDESHOW_START
, BUTTON_RC_PLAY
|BUTTON_REL
, BUTTON_RC_PLAY
},
445 { ACTION_USB_HID_PRESENTATION_SLIDESHOW_LEAVE
, BUTTON_RC_PLAY
|BUTTON_REPEAT
, BUTTON_RC_PLAY
},
446 { ACTION_USB_HID_PRESENTATION_SLIDE_PREV
, BUTTON_RC_REW
|BUTTON_REL
, BUTTON_RC_REW
},
447 { ACTION_USB_HID_PRESENTATION_SLIDE_NEXT
, BUTTON_RC_FF
|BUTTON_REL
, BUTTON_RC_FF
},
448 { ACTION_USB_HID_PRESENTATION_SLIDE_FIRST
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_RC_REW
},
449 { ACTION_USB_HID_PRESENTATION_SLIDE_LAST
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_RC_FF
},
450 { ACTION_USB_HID_PRESENTATION_SCREEN_BLACK
, BUTTON_RC_DOWN
|BUTTON_REL
, BUTTON_RC_DOWN
},
451 { ACTION_USB_HID_PRESENTATION_SCREEN_WHITE
, BUTTON_RC_DOWN
|BUTTON_REPEAT
, BUTTON_RC_DOWN
},
452 { ACTION_USB_HID_PRESENTATION_LINK_PREV
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
453 { ACTION_USB_HID_PRESENTATION_LINK_PREV
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
454 { ACTION_USB_HID_PRESENTATION_LINK_NEXT
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
455 { ACTION_USB_HID_PRESENTATION_LINK_NEXT
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
456 { ACTION_USB_HID_PRESENTATION_MOUSE_CLICK
, BUTTON_RC_HEART
|BUTTON_REL
, BUTTON_RC_HEART
},
457 { ACTION_USB_HID_PRESENTATION_MOUSE_OVER
, BUTTON_RC_HEART
|BUTTON_REPEAT
, BUTTON_RC_HEART
},
459 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_USB_HID
)
460 }; /* remote_button_context_usb_hid_mode_presentation */
462 static const struct button_mapping remote_button_context_usb_hid_mode_browser
[] = {
463 { ACTION_USB_HID_BROWSER_SCROLL_UP
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
464 { ACTION_USB_HID_BROWSER_SCROLL_UP
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
465 { ACTION_USB_HID_BROWSER_SCROLL_DOWN
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
466 { ACTION_USB_HID_BROWSER_SCROLL_DOWN
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
467 { ACTION_USB_HID_BROWSER_SCROLL_PAGE_UP
, BUTTON_RC_PLAY
|BUTTON_REL
, BUTTON_RC_PLAY
},
468 { ACTION_USB_HID_BROWSER_SCROLL_PAGE_DOWN
, BUTTON_RC_DOWN
|BUTTON_REL
, BUTTON_RC_DOWN
},
469 { ACTION_USB_HID_BROWSER_ZOOM_IN
, BUTTON_RC_PLAY
|BUTTON_REPEAT
, BUTTON_RC_PLAY
},
470 { ACTION_USB_HID_BROWSER_ZOOM_OUT
, BUTTON_RC_DOWN
|BUTTON_REPEAT
, BUTTON_RC_DOWN
},
471 { ACTION_USB_HID_BROWSER_ZOOM_RESET
, BUTTON_RC_HEART
|BUTTON_REPEAT
, BUTTON_RC_HEART
},
472 { ACTION_USB_HID_BROWSER_TAB_PREV
, BUTTON_RC_REW
|BUTTON_REL
, BUTTON_RC_REW
},
473 { ACTION_USB_HID_BROWSER_TAB_NEXT
, BUTTON_RC_FF
|BUTTON_REL
, BUTTON_RC_FF
},
474 { ACTION_USB_HID_BROWSER_HISTORY_BACK
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_RC_REW
},
475 { ACTION_USB_HID_BROWSER_HISTORY_FORWARD
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_RC_FF
},
476 { ACTION_USB_HID_BROWSER_VIEW_FULL_SCREEN
, BUTTON_RC_HEART
|BUTTON_REL
, BUTTON_RC_HEART
},
478 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_USB_HID
)
479 }; /* remote_button_context_usb_hid_mode_browser */
481 #ifdef HAVE_USB_HID_MOUSE
482 static const struct button_mapping remote_button_context_usb_hid_mode_mouse
[] = {
483 { ACTION_USB_HID_MOUSE_UP
, BUTTON_RC_PLAY
, BUTTON_NONE
},
484 { ACTION_USB_HID_MOUSE_UP_REP
, BUTTON_RC_PLAY
|BUTTON_REPEAT
, BUTTON_NONE
},
485 { ACTION_USB_HID_MOUSE_DOWN
, BUTTON_RC_DOWN
, BUTTON_NONE
},
486 { ACTION_USB_HID_MOUSE_DOWN_REP
, BUTTON_RC_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
487 { ACTION_USB_HID_MOUSE_LEFT
, BUTTON_RC_REW
, BUTTON_NONE
},
488 { ACTION_USB_HID_MOUSE_LEFT_REP
, BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
489 { ACTION_USB_HID_MOUSE_RIGHT
, BUTTON_RC_FF
, BUTTON_NONE
},
490 { ACTION_USB_HID_MOUSE_RIGHT_REP
, BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
491 { ACTION_USB_HID_MOUSE_BUTTON_LEFT
, BUTTON_RC_HEART
, BUTTON_NONE
},
492 { ACTION_USB_HID_MOUSE_BUTTON_LEFT_REL
, BUTTON_RC_HEART
|BUTTON_REL
, BUTTON_NONE
},
493 { ACTION_USB_HID_MOUSE_LDRAG_UP
, BUTTON_RC_HEART
|BUTTON_RC_PLAY
, BUTTON_NONE
},
494 { ACTION_USB_HID_MOUSE_LDRAG_UP_REP
, BUTTON_RC_HEART
|BUTTON_RC_PLAY
|BUTTON_REPEAT
, BUTTON_NONE
},
495 { ACTION_USB_HID_MOUSE_LDRAG_DOWN
, BUTTON_RC_HEART
|BUTTON_RC_DOWN
, BUTTON_NONE
},
496 { ACTION_USB_HID_MOUSE_LDRAG_DOWN_REP
, BUTTON_RC_HEART
|BUTTON_RC_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
497 { ACTION_USB_HID_MOUSE_LDRAG_LEFT
, BUTTON_RC_HEART
|BUTTON_RC_REW
, BUTTON_NONE
},
498 { ACTION_USB_HID_MOUSE_LDRAG_LEFT_REP
, BUTTON_RC_HEART
|BUTTON_RC_REW
|BUTTON_REPEAT
, BUTTON_NONE
},
499 { ACTION_USB_HID_MOUSE_LDRAG_RIGHT
, BUTTON_RC_HEART
|BUTTON_RC_FF
, BUTTON_NONE
},
500 { ACTION_USB_HID_MOUSE_LDRAG_RIGHT_REP
, BUTTON_RC_HEART
|BUTTON_RC_FF
|BUTTON_REPEAT
, BUTTON_NONE
},
501 { ACTION_USB_HID_MOUSE_WHEEL_SCROLL_UP
, BUTTON_RC_VOL_UP
, BUTTON_NONE
},
502 { ACTION_USB_HID_MOUSE_WHEEL_SCROLL_UP
, BUTTON_RC_VOL_UP
|BUTTON_REPEAT
, BUTTON_NONE
},
503 { ACTION_USB_HID_MOUSE_WHEEL_SCROLL_DOWN
, BUTTON_RC_VOL_DOWN
, BUTTON_NONE
},
504 { ACTION_USB_HID_MOUSE_WHEEL_SCROLL_DOWN
, BUTTON_RC_VOL_DOWN
|BUTTON_REPEAT
, BUTTON_NONE
},
506 LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_USB_HID
)
507 }; /* remote_button_context_usb_hid_mode_mouse */
511 static const struct button_mapping
* get_context_mapping_remote( int context
)
513 context
^= CONTEXT_REMOTE
;
518 return remote_button_context_wps
;
519 case CONTEXT_MAINMENU
:
521 return remote_button_context_tree
;
522 #ifdef USB_ENABLE_HID
523 case CONTEXT_USB_HID
:
524 return remote_button_context_usb_hid
;
525 case CONTEXT_USB_HID_MODE_MULTIMEDIA
:
526 return remote_button_context_usb_hid_mode_multimedia
;
527 case CONTEXT_USB_HID_MODE_PRESENTATION
:
528 return remote_button_context_usb_hid_mode_presentation
;
529 case CONTEXT_USB_HID_MODE_BROWSER
:
530 return remote_button_context_usb_hid_mode_browser
;
531 #ifdef HAVE_USB_HID_MOUSE
532 case CONTEXT_USB_HID_MODE_MOUSE
:
533 return remote_button_context_usb_hid_mode_mouse
;
537 return remote_button_context_standard
;
540 const struct button_mapping
* get_context_mapping(int context
)
542 if (context
&CONTEXT_REMOTE
)
543 return get_context_mapping_remote(context
);
548 return button_context_standard
;
550 return button_context_wps
;
553 return button_context_list
;
554 case CONTEXT_MAINMENU
:
556 if (global_settings
.hold_lr_for_scroll_in_list
)
557 return button_context_listtree_scroll_without_combo
;
559 return button_context_listtree_scroll_with_combo
;
560 case CONTEXT_CUSTOM
|CONTEXT_TREE
:
561 return button_context_tree
;
563 case CONTEXT_SETTINGS
:
564 return button_context_settings
;
565 case CONTEXT_CUSTOM
|CONTEXT_SETTINGS
:
566 return button_context_settings_right_is_inc
;
568 case CONTEXT_SETTINGS_COLOURCHOOSER
:
569 return button_context_colorchooser
;
570 case CONTEXT_SETTINGS_EQ
:
571 return button_context_eq
;
573 case CONTEXT_SETTINGS_TIME
:
574 return button_context_time
;
576 case CONTEXT_YESNOSCREEN
:
577 return button_context_yesno
;
578 case CONTEXT_BOOKMARKSCREEN
:
579 return button_context_bmark
;
580 case CONTEXT_QUICKSCREEN
:
581 return button_context_quickscreen
;
582 case CONTEXT_PITCHSCREEN
:
583 return button_context_pitchscreen
;
584 case CONTEXT_KEYBOARD
:
585 case CONTEXT_MORSE_INPUT
:
586 return button_context_keyboard
;
587 #ifdef USB_ENABLE_HID
588 case CONTEXT_USB_HID
:
589 return button_context_usb_hid
;
590 case CONTEXT_USB_HID_MODE_MULTIMEDIA
:
591 return button_context_usb_hid_mode_multimedia
;
592 case CONTEXT_USB_HID_MODE_PRESENTATION
:
593 return button_context_usb_hid_mode_presentation
;
594 case CONTEXT_USB_HID_MODE_BROWSER
:
595 return button_context_usb_hid_mode_browser
;
596 #ifdef HAVE_USB_HID_MOUSE
597 case CONTEXT_USB_HID_MODE_MOUSE
:
598 return button_context_usb_hid_mode_mouse
;
602 return button_context_standard
;