summaryrefslogtreecommitdiff
path: root/apps/plugins/pacbox/pacbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pacbox/pacbox.h')
-rw-r--r--apps/plugins/pacbox/pacbox.h37
1 files changed, 28 insertions, 9 deletions
diff --git a/apps/plugins/pacbox/pacbox.h b/apps/plugins/pacbox/pacbox.h
index d316b70e71..8350e4e939 100644
--- a/apps/plugins/pacbox/pacbox.h
+++ b/apps/plugins/pacbox/pacbox.h
@@ -132,15 +132,7 @@
132 132
133#elif CONFIG_KEYPAD == COWOND2_PAD 133#elif CONFIG_KEYPAD == COWOND2_PAD
134 134
135#define PACMAN_UP BUTTON_UP 135#define PACMAN_MENU (BUTTON_MENU|BUTTON_REL)
136#define PACMAN_DOWN BUTTON_DOWN
137#define PACMAN_LEFT BUTTON_LEFT
138#define PACMAN_RIGHT BUTTON_RIGHT
139#define PACMAN_1UP BUTTON_MINUS
140#define PACMAN_2UP BUTTON_PLUS
141#define PACMAN_COIN_PRE BUTTON_SELECT
142#define PACMAN_COIN (BUTTON_MENU | BUTTON_SELECT)
143#define PACMAN_MENU BUTTON_MENU
144 136
145#else 137#else
146 138
@@ -148,6 +140,33 @@
148 140
149#endif 141#endif
150 142
143#ifdef HAVE_TOUCHPAD
144#ifndef PACMAN_UP
145#define PACMAN_UP BUTTON_TOPMIDDLE
146#endif
147#ifndef PACMAN_DOWN
148#define PACMAN_DOWN BUTTON_BOTTOMMIDDLE
149#endif
150#ifndef PACMAN_LEFT
151#define PACMAN_LEFT BUTTON_MIDLEFT
152#endif
153#ifndef PACMAN_RIGHT
154#define PACMAN_RIGHT BUTTON_MIDRIGHT
155#endif
156#ifndef PACMAN_1UP
157#define PACMAN_1UP BUTTON_BOTTOMLEFT
158#endif
159#ifndef PACMAN_2UP
160#define PACMAN_2UP BUTTON_BOTTOMRIGHT
161#endif
162#ifndef PACMAN_COIN
163#define PACMAN_COIN BUTTON_CENTER
164#endif
165#ifndef PACMAN_MENU
166#define PACMAN_MENU (BUTTON_TOPLEFT|BUTTON_REL)
167#endif
168#endif
169
151#if (LCD_HEIGHT >= 288) 170#if (LCD_HEIGHT >= 288)
152#define XOFS ((LCD_WIDTH-224)/2) 171#define XOFS ((LCD_WIDTH-224)/2)
153#define YOFS ((LCD_HEIGHT-288)/2) 172#define YOFS ((LCD_HEIGHT-288)/2)