diff options
-rw-r--r-- | apps/plugins/puzzles/rockbox.c | 14 |
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) | |||
2909 | { | 2909 | { |
2910 | static const char *want_spacebar[] = { | 2910 | static const char *want_spacebar[] = { |
2911 | "Magnets", | 2911 | "Magnets", |
2912 | "Map", | ||
2912 | "Mines", | 2913 | "Mines", |
2913 | "Palisade", | 2914 | "Palisade", |
2915 | "Rectangles", | ||
2914 | NULL | 2916 | NULL |
2915 | }; | 2917 | }; |
2916 | 2918 | ||
2917 | /* these get a spacebar on long click */ | 2919 | /* these get a spacebar on long click - you must also add to the |
2920 | * falling_edge list below! */ | ||
2918 | input_settings.want_spacebar = string_in_list(name, want_spacebar); | 2921 | input_settings.want_spacebar = string_in_list(name, want_spacebar); |
2919 | 2922 | ||
2920 | static const char *falling_edge[] = { | 2923 | static const char *falling_edge[] = { |
@@ -2923,20 +2926,25 @@ static void tune_input(const char *name) | |||
2923 | "Map", | 2926 | "Map", |
2924 | "Mines", | 2927 | "Mines", |
2925 | "Palisade", | 2928 | "Palisade", |
2929 | "Rectangles", | ||
2926 | NULL | 2930 | NULL |
2927 | }; | 2931 | }; |
2928 | 2932 | ||
2929 | /* wait until a key is released to send an action */ | 2933 | /* wait until a key is released to send an action */ |
2930 | input_settings.falling_edge = string_in_list(name, falling_edge); | 2934 | input_settings.falling_edge = string_in_list(name, falling_edge); |
2931 | 2935 | ||
2936 | /* For want_spacebar to work, events must be sent on the falling | ||
2937 | * edge */ | ||
2938 | assert(!(input_settings.want_spacebar && !input_settings.falling_edge)); | ||
2939 | |||
2932 | /* ignore repeated keypresses in all games but untangle (mouse | 2940 | /* ignore repeated keypresses in all games but untangle (mouse |
2933 | * mode overrides this no matter what) */ | 2941 | * mode overrides this no matter what) */ |
2934 | static const char *ignore_repeats[] = { | 2942 | static const char *allow_repeats[] = { |
2935 | "Untangle", | 2943 | "Untangle", |
2936 | NULL | 2944 | NULL |
2937 | }; | 2945 | }; |
2938 | 2946 | ||
2939 | input_settings.ignore_repeats = !string_in_list(name, ignore_repeats); | 2947 | input_settings.ignore_repeats = !string_in_list(name, allow_repeats); |
2940 | 2948 | ||
2941 | /* set to false if you want dragging to be possible */ | 2949 | /* set to false if you want dragging to be possible */ |
2942 | static const char *rclick_on_hold[] = { | 2950 | static const char *rclick_on_hold[] = { |