From 84e13d5749835234347c8f94f85ea2790980f44d Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Wed, 12 Jul 2017 12:21:20 -0400 Subject: puzzles: allow using hints in Fifteen This maps the select button to the "h" key for Fifteen only. Change-Id: I7a5a61cec46e86254218fabfb191974f98c12319 --- apps/plugins/puzzles/rockbox.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps') 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) break; case BTN_FIRE: - state = CURSOR_SELECT; + if(!strcmp("Fifteen", midend_which_game(me)->name)) + state = 'h'; /* hint */ + else + state = CURSOR_SELECT; break; default: -- cgit v1.2.3