summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-x5.c
diff options
context:
space:
mode:
authorMarianne Arnold <pixelma@rockbox.org>2009-02-01 12:58:19 +0000
committerMarianne Arnold <pixelma@rockbox.org>2009-02-01 12:58:19 +0000
commit991cbf86c2103996d78945f8fbcc163bb3b13dfc (patch)
tree7a9be6dd1c1f97d6b564f04fe0913149df2ea51f /apps/keymaps/keymap-x5.c
parent80cb3551eb61cdf240cf24ad0c44016475bf2e61 (diff)
downloadrockbox-991cbf86c2103996d78945f8fbcc163bb3b13dfc.tar.gz
rockbox-991cbf86c2103996d78945f8fbcc163bb3b13dfc.zip
Make 'accept' in the yesno screen work on an Iaudio remote (with the X5 or M5) - assigning it to a short press of Play, same as the standard 'ok' action.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19895 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/keymaps/keymap-x5.c')
-rw-r--r--apps/keymaps/keymap-x5.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-x5.c b/apps/keymaps/keymap-x5.c
index efcc3ad81b..9495bf3306 100644
--- a/apps/keymaps/keymap-x5.c
+++ b/apps/keymaps/keymap-x5.c
@@ -346,6 +346,12 @@ static const struct button_mapping button_context_yesnoscreen[] = {
346 LAST_ITEM_IN_LIST 346 LAST_ITEM_IN_LIST
347}; /* button_context_settings_yesnoscreen */ 347}; /* button_context_settings_yesnoscreen */
348 348
349static const struct button_mapping remote_button_context_yesnoscreen[] = {
350 { ACTION_YESNO_ACCEPT, BUTTON_RC_PLAY, BUTTON_NONE },
351 LAST_ITEM_IN_LIST
352}; /* remote_button_context_settings_yesnoscreen */
353
354
349static const struct button_mapping* get_context_mapping_remote( int context ) 355static const struct button_mapping* get_context_mapping_remote( int context )
350{ 356{
351 context ^= CONTEXT_REMOTE; 357 context ^= CONTEXT_REMOTE;
@@ -379,6 +385,9 @@ static const struct button_mapping* get_context_mapping_remote( int context )
379 385
380 case CONTEXT_WPS: 386 case CONTEXT_WPS:
381 return remote_button_context_wps; 387 return remote_button_context_wps;
388
389 case CONTEXT_YESNOSCREEN:
390 return remote_button_context_yesnoscreen;
382 } 391 }
383} 392}
384 393