summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-07-12 12:21:20 -0400
committerFranklin Wei <git@fwei.tk>2017-07-12 12:23:21 -0400
commit84e13d5749835234347c8f94f85ea2790980f44d (patch)
treed9c8fb8d47f91443ee95a5576ad824336bffe0a6
parentf9198ba35c55bf8765e54c271f1598a181f5c268 (diff)
downloadrockbox-84e13d5749835234347c8f94f85ea2790980f44d.tar.gz
rockbox-84e13d5749835234347c8f94f85ea2790980f44d.zip
puzzles: allow using hints in Fifteen
This maps the select button to the "h" key for Fifteen only. Change-Id: I7a5a61cec46e86254218fabfb191974f98c12319
-rw-r--r--apps/plugins/puzzles/rockbox.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c
index 45e0df7edb..56bb83e3a6 100644
--- a/apps/plugins/puzzles/rockbox.c
+++ b/apps/plugins/puzzles/rockbox.c
@@ -1493,7 +1493,10 @@ static int process_input(int tmo)
1493 break; 1493 break;
1494 1494
1495 case BTN_FIRE: 1495 case BTN_FIRE:
1496 state = CURSOR_SELECT; 1496 if(!strcmp("Fifteen", midend_which_game(me)->name))
1497 state = 'h'; /* hint */
1498 else
1499 state = CURSOR_SELECT;
1497 break; 1500 break;
1498 1501
1499 default: 1502 default: