diff options
Diffstat (limited to 'apps/plugins/bounce.c')
-rw-r--r-- | apps/plugins/bounce.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c index 2400325032..c8a40dec4a 100644 --- a/apps/plugins/bounce.c +++ b/apps/plugins/bounce.c | |||
@@ -139,10 +139,6 @@ PLUGIN_HEADER | |||
139 | #define BOUNCE_MODE BUTTON_RC_MODE | 139 | #define BOUNCE_MODE BUTTON_RC_MODE |
140 | 140 | ||
141 | #elif (CONFIG_KEYPAD == COWOND2_PAD) | 141 | #elif (CONFIG_KEYPAD == COWOND2_PAD) |
142 | #define BOUNCE_LEFT BUTTON_LEFT | ||
143 | #define BOUNCE_RIGHT BUTTON_RIGHT | ||
144 | #define BOUNCE_UP BUTTON_UP | ||
145 | #define BOUNCE_DOWN BUTTON_DOWN | ||
146 | #define BOUNCE_QUIT BUTTON_POWER | 142 | #define BOUNCE_QUIT BUTTON_POWER |
147 | #define BOUNCE_MODE BUTTON_MENU | 143 | #define BOUNCE_MODE BUTTON_MENU |
148 | 144 | ||
@@ -150,6 +146,27 @@ PLUGIN_HEADER | |||
150 | #error No keymap defined! | 146 | #error No keymap defined! |
151 | #endif | 147 | #endif |
152 | 148 | ||
149 | #ifdef HAVE_TOUCHPAD | ||
150 | #ifndef BOUNCE_LEFT | ||
151 | #define BOUNCE_LEFT BUTTON_MIDLEFT | ||
152 | #endif | ||
153 | #ifndef BOUNCE_RIGHT | ||
154 | #define BOUNCE_RIGHT BUTTON_MIDRIGHT | ||
155 | #endif | ||
156 | #ifndef BOUNCE_UP | ||
157 | #define BOUNCE_UP BUTTON_TOPMIDDLE | ||
158 | #endif | ||
159 | #ifndef BOUNCE_DOWN | ||
160 | #define BOUNCE_DOWN BUTTON_BOTTOMMIDDLE | ||
161 | #endif | ||
162 | #ifndef BOUNCE_QUIT | ||
163 | #define BOUNCE_QUIT BUTTON_TOPLEFT | ||
164 | #endif | ||
165 | #ifndef BOUNCE_MODE | ||
166 | #define BOUNCE_MODE BUTTON_CENTER | ||
167 | #endif | ||
168 | #endif | ||
169 | |||
153 | static struct plugin_api* rb; | 170 | static struct plugin_api* rb; |
154 | 171 | ||
155 | #define LETTER_WIDTH 11 | 172 | #define LETTER_WIDTH 11 |