diff options
Diffstat (limited to 'apps/plugins/xobox.c')
-rw-r--r-- | apps/plugins/xobox.c | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/apps/plugins/xobox.c b/apps/plugins/xobox.c index 879d0e65f7..331650eddc 100644 --- a/apps/plugins/xobox.c +++ b/apps/plugins/xobox.c | |||
@@ -142,16 +142,32 @@ PLUGIN_HEADER | |||
142 | #elif CONFIG_KEYPAD == COWOND2_PAD | 142 | #elif CONFIG_KEYPAD == COWOND2_PAD |
143 | 143 | ||
144 | #define QUIT BUTTON_POWER | 144 | #define QUIT BUTTON_POWER |
145 | #define LEFT BUTTON_LEFT | ||
146 | #define RIGHT BUTTON_RIGHT | ||
147 | #define UP BUTTON_UP | ||
148 | #define DOWN BUTTON_DOWN | ||
149 | #define PAUSE BUTTON_SELECT | ||
150 | 145 | ||
151 | #else | 146 | #else |
152 | #error No keymap defined! | 147 | #error No keymap defined! |
153 | #endif | 148 | #endif |
154 | 149 | ||
150 | #ifdef HAVE_TOUCHPAD | ||
151 | #ifndef QUIT | ||
152 | #define QUIT BUTTON_TOPLEFT | ||
153 | #endif | ||
154 | #ifndef LEFT | ||
155 | #define LEFT BUTTON_MIDLEFT | ||
156 | #endif | ||
157 | #ifndef RIGHT | ||
158 | #define RIGHT BUTTON_MIDRIGHT | ||
159 | #endif | ||
160 | #ifndef UP | ||
161 | #define UP BUTTON_TOPMIDDLE | ||
162 | #endif | ||
163 | #ifndef DOWN | ||
164 | #define DOWN BUTTON_BOTTOMMIDDLE | ||
165 | #endif | ||
166 | #ifndef PAUSE | ||
167 | #define PAUSE BUTTON_CENTER | ||
168 | #endif | ||
169 | #endif | ||
170 | |||
155 | #define MOVE_NO 0 /* player movement */ | 171 | #define MOVE_NO 0 /* player movement */ |
156 | #define MOVE_UP 1 /* 1 */ | 172 | #define MOVE_UP 1 /* 1 */ |
157 | #define MOVE_DN 2 /* 3 0 4 */ | 173 | #define MOVE_DN 2 /* 3 0 4 */ |