diff options
author | Franklin Wei <git@fwei.tk> | 2017-07-12 12:21:20 -0400 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-07-12 12:23:21 -0400 |
commit | 84e13d5749835234347c8f94f85ea2790980f44d (patch) | |
tree | d9c8fb8d47f91443ee95a5576ad824336bffe0a6 /apps/plugins/puzzles | |
parent | f9198ba35c55bf8765e54c271f1598a181f5c268 (diff) | |
download | rockbox-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
Diffstat (limited to 'apps/plugins/puzzles')
-rw-r--r-- | apps/plugins/puzzles/rockbox.c | 5 |
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: |