From 8970055ec107a2387eedbb373889d0f540745121 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 22 May 2007 06:31:44 +0000 Subject: Hopefully take care of the scrollwheel difficulties in plugins on e200. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13460 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/brickmania.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'apps/plugins/brickmania.c') diff --git a/apps/plugins/brickmania.c b/apps/plugins/brickmania.c index 2557738984..93b759d48c 100644 --- a/apps/plugins/brickmania.c +++ b/apps/plugins/brickmania.c @@ -117,14 +117,15 @@ PLUGIN_HEADER #elif CONFIG_KEYPAD == SANSA_E200_PAD -#define QUIT BUTTON_POWER -#define LEFT BUTTON_LEFT -#define RIGHT BUTTON_RIGHT +#define QUIT BUTTON_POWER +#define LEFT BUTTON_LEFT +#define RIGHT BUTTON_RIGHT #define SELECT BUTTON_SELECT -#define UP BUTTON_SCROLL_UP -#define DOWN BUTTON_SCROLL_DOWN -#define SCROLL_FWD(x) (0) -#define SCROLL_BACK(x) (0) +#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 == IRIVER_H10_PAD /* grayscale at the moment */ -- cgit v1.2.3