summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/brickmania.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c
index f03b227..8a4e07c 100644
--- a/apps/plugins/brickmania.c
+++ b/apps/plugins/brickmania.c
@@ -110,6 +110,9 @@ PLUGIN_HEADER
#define UP BUTTON_SCROLL_UP
#define DOWN BUTTON_SCROLL_DOWN
+#define SCROLL_FWD(x) ((x) & BUTTON_SCROLL_DOWN)
+#define SCROLL_BACK(x) ((x) & BUTTON_SCROLL_UP)
+
#elif CONFIG_KEYPAD == SANSA_C200_PAD
@@ -137,7 +140,7 @@ PLUGIN_HEADER
#error Unsupported keypad
#endif
-#ifndef SCROLL_FWD
+#ifndef SCROLL_FWD /* targets without scroll wheel*/
#define SCROLL_FWD(x) (0)
#define SCROLL_BACK(x) (0)
#endif