summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pacbox/pacbox.h
diff options
context:
space:
mode:
authorSebastian Leonhardt <sebastian.leonhardt@web.de>2016-04-12 17:20:04 +0200
committerSebastian Leonhardt <sebastian.leonhardt@web.de>2018-04-03 00:21:40 +0200
commitfb3f7651fd68bf3b8c7e4dbd62dbb2b3505f929a (patch)
treed09a0cd7828395d70962b5ef18ba7b5a8d71afc2 /apps/plugins/pacbox/pacbox.h
parent96335a7eb2e9cf1e452feac0c8ae0c489197500f (diff)
downloadrockbox-fb3f7651fd68bf3b8c7e4dbd62dbb2b3505f929a.tar.gz
rockbox-fb3f7651fd68bf3b8c7e4dbd62dbb2b3505f929a.tar.bz2
rockbox-fb3f7651fd68bf3b8c7e4dbd62dbb2b3505f929a.zip
pacbox for small screens, up to 75x96
Change-Id: I6e9adf2f6923f4d0078a54e9857fc8eacef259a6
Diffstat (limited to 'apps/plugins/pacbox/pacbox.h')
-rw-r--r--apps/plugins/pacbox/pacbox.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/plugins/pacbox/pacbox.h b/apps/plugins/pacbox/pacbox.h
index 77a107bec4..58838c7be3 100644
--- a/apps/plugins/pacbox/pacbox.h
+++ b/apps/plugins/pacbox/pacbox.h
@@ -123,6 +123,17 @@
#define PACMAN_COIN (BUTTON_SELECT | BUTTON_DOWN)
#define PACMAN_MENU BUTTON_HOME
+#elif CONFIG_KEYPAD == SANSA_CLIP_PAD
+
+#define PACMAN_UP BUTTON_UP
+#define PACMAN_DOWN BUTTON_DOWN
+#define PACMAN_LEFT BUTTON_LEFT
+#define PACMAN_RIGHT BUTTON_RIGHT
+#define PACMAN_1UP BUTTON_SELECT
+#define PACMAN_COIN_PRE BUTTON_SELECT
+#define PACMAN_COIN (BUTTON_SELECT | BUTTON_DOWN)
+#define PACMAN_MENU BUTTON_HOME
+
#elif CONFIG_KEYPAD == IRIVER_H10_PAD
#if defined(IRIVER_H10_5GB)
@@ -418,6 +429,18 @@
#define YOFS ((LCD_HEIGHT-288/2)/2)
#endif
+#elif (LCD_WIDTH >= 116) && (LCD_HEIGHT >= 90)
+#define LCD_SCALE 40
+#define LCD_ROTATE 1
+#define XOFS ((LCD_HEIGHT-224*2/5)/2)
+#define YOFS ((LCD_WIDTH-288*2/5)/2)
+
+#elif (LCD_WIDTH >= 75) && (LCD_HEIGHT >= 96)
+#define LCD_SCALE 33
+#define LCD_ROTATE 0
+#define XOFS ((LCD_HEIGHT-224/3)/2)
+#define YOFS ((LCD_WIDTH-288/3)/2)
+
#else
#error "unsupported screen resolution"
#endif