summaryrefslogtreecommitdiffstats
path: root/apps/plugins/puzzles/rockbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/rockbox.c')
-rw-r--r--apps/plugins/puzzles/rockbox.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c
index 74d037f6c5..9155788824 100644
--- a/apps/plugins/puzzles/rockbox.c
+++ b/apps/plugins/puzzles/rockbox.c
@@ -2909,12 +2909,15 @@ static void tune_input(const char *name)
{
static const char *want_spacebar[] = {
"Magnets",
+ "Map",
"Mines",
"Palisade",
+ "Rectangles",
NULL
};
- /* these get a spacebar on long click */
+ /* these get a spacebar on long click - you must also add to the
+ * falling_edge list below! */
input_settings.want_spacebar = string_in_list(name, want_spacebar);
static const char *falling_edge[] = {
@@ -2923,20 +2926,25 @@ static void tune_input(const char *name)
"Map",
"Mines",
"Palisade",
+ "Rectangles",
NULL
};
/* wait until a key is released to send an action */
input_settings.falling_edge = string_in_list(name, falling_edge);
+ /* For want_spacebar to work, events must be sent on the falling
+ * edge */
+ assert(!(input_settings.want_spacebar && !input_settings.falling_edge));
+
/* ignore repeated keypresses in all games but untangle (mouse
* mode overrides this no matter what) */
- static const char *ignore_repeats[] = {
+ static const char *allow_repeats[] = {
"Untangle",
NULL
};
- input_settings.ignore_repeats = !string_in_list(name, ignore_repeats);
+ input_settings.ignore_repeats = !string_in_list(name, allow_repeats);
/* set to false if you want dragging to be possible */
static const char *rclick_on_hold[] = {