diff options
Diffstat (limited to 'apps/plugins/pong.c')
-rw-r--r-- | apps/plugins/pong.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/apps/plugins/pong.c b/apps/plugins/pong.c index b1e53d3dcc..8163915fb6 100644 --- a/apps/plugins/pong.c +++ b/apps/plugins/pong.c | |||
@@ -148,15 +148,32 @@ PLUGIN_HEADER | |||
148 | 148 | ||
149 | #elif (CONFIG_KEYPAD == COWOND2_PAD) | 149 | #elif (CONFIG_KEYPAD == COWOND2_PAD) |
150 | #define PONG_QUIT BUTTON_POWER | 150 | #define PONG_QUIT BUTTON_POWER |
151 | #define PONG_LEFT_UP BUTTON_UP | ||
152 | #define PONG_LEFT_DOWN BUTTON_DOWN | ||
153 | #define PONG_RIGHT_UP BUTTON_LEFT | ||
154 | #define PONG_RIGHT_DOWN BUTTON_RIGHT | ||
155 | 151 | ||
156 | #else | 152 | #else |
157 | #error No keymap defined! | 153 | #error No keymap defined! |
158 | #endif | 154 | #endif |
159 | 155 | ||
156 | #ifdef HAVE_TOUCHPAD | ||
157 | #ifndef PONG_QUIT | ||
158 | #define PONG_QUIT BUTTON_TOPMIDDLE | ||
159 | #endif | ||
160 | #ifndef PONG_LEFT_UP | ||
161 | #define PONG_LEFT_UP BUTTON_TOPLEFT | ||
162 | #endif | ||
163 | #ifndef PONG_LEFT_DOWN | ||
164 | #define PONG_LEFT_DOWN BUTTON_BOTTOMLEFT | ||
165 | #endif | ||
166 | #ifndef PONG_RIGHT_UP | ||
167 | #define PONG_RIGHT_UP BUTTON_TOPRIGHT | ||
168 | #endif | ||
169 | #ifndef PONG_RIGHT_DOWN | ||
170 | #define PONG_RIGHT_DOWN BUTTON_BOTTOMRIGHT | ||
171 | #endif | ||
172 | #ifndef PONG_PAUSE | ||
173 | #define PONG_PAUSE BUTTON_CENTER | ||
174 | #endif | ||
175 | #endif | ||
176 | |||
160 | static struct plugin_api* rb; | 177 | static struct plugin_api* rb; |
161 | 178 | ||
162 | struct pong { | 179 | struct pong { |