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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/plugins/pacbox/pacbox.h b/apps/plugins/pacbox/pacbox.h
index d0b0bce303..f6816082ef 100644
--- a/apps/plugins/pacbox/pacbox.h
+++ b/apps/plugins/pacbox/pacbox.h
@@ -89,10 +89,18 @@
89 89
90#elif CONFIG_KEYPAD == IRIVER_H10_PAD 90#elif CONFIG_KEYPAD == IRIVER_H10_PAD
91 91
92#if defined(IRIVER_H10_5GB)
93#define PACMAN_UP BUTTON_SCROLL_UP
94#define PACMAN_DOWN BUTTON_SCROLL_DOWN
95#define PACMAN_LEFT BUTTON_LEFT
96#define PACMAN_RIGHT BUTTON_RIGHT
97#else
92#define PACMAN_UP BUTTON_RIGHT 98#define PACMAN_UP BUTTON_RIGHT
93#define PACMAN_DOWN BUTTON_LEFT 99#define PACMAN_DOWN BUTTON_LEFT
94#define PACMAN_LEFT BUTTON_SCROLL_UP 100#define PACMAN_LEFT BUTTON_SCROLL_UP
95#define PACMAN_RIGHT BUTTON_SCROLL_DOWN 101#define PACMAN_RIGHT BUTTON_SCROLL_DOWN
102#endif
103
96#define PACMAN_1UP BUTTON_REW 104#define PACMAN_1UP BUTTON_REW
97#define PACMAN_2UP BUTTON_POWER 105#define PACMAN_2UP BUTTON_POWER
98#define PACMAN_COIN BUTTON_FF 106#define PACMAN_COIN BUTTON_FF
@@ -112,6 +120,9 @@
112#elif (LCD_WIDTH >= 144) 120#elif (LCD_WIDTH >= 144)
113#define XOFS ((LCD_WIDTH-288/2)/2) 121#define XOFS ((LCD_WIDTH-288/2)/2)
114#define YOFS ((LCD_HEIGHT-224/2)/2) 122#define YOFS ((LCD_HEIGHT-224/2)/2)
123#elif (LCD_WIDTH >= 128)
124#define XOFS ((LCD_WIDTH-224/2)/2)
125#define YCLIP ((288-2*LCD_HEIGHT)/2)
115#endif 126#endif
116 127
117/* How many video frames (out of a possible 60) we display each second. 128/* How many video frames (out of a possible 60) we display each second.