summaryrefslogtreecommitdiffstats
path: root/apps/plugins/fractals/fractal.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-08 09:47:40 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-11 16:37:17 -0400
commit2a471e288c16b91a7186a60b3fb84dd55a494c7a (patch)
tree3e746212c5fa69b59f61d19b6e29d11aa8a5e31b /apps/plugins/fractals/fractal.h
parent5efaa9ef8073bb216e3dcdbb4476f2fa7c672b76 (diff)
downloadrockbox-2a471e288c.tar.gz
rockbox-2a471e288c.tar.bz2
rockbox-2a471e288c.zip
New port: AIGO EROS Q / EROS K
The Q and K have a slightly different case, but the hardware under the shell is completely identical. These models are rebadged versions: * Hifiwalker H2 (== Q) * AGPTek H3 (== K) * Surfans F20 (== K) Other notes: * Significant improvements in the shared Hiby-platform launcher/loader * SD card can theoretically be hot-swapped now * Support external USB mass storage! * Some consolidation of Hiby-platform targets * Some consolidation of plugin keymaps Todo/known issues: * Keymaps need to be gone over properly * Convert to HAVE_SCROLLWHEEL? Change-Id: I5a8a4f22c38a5b69392ca7c0a8ad8c4e07d9523c
Diffstat (limited to 'apps/plugins/fractals/fractal.h')
-rw-r--r--apps/plugins/fractals/fractal.h33
1 files changed, 10 insertions, 23 deletions
diff --git a/apps/plugins/fractals/fractal.h b/apps/plugins/fractals/fractal.h
index 45de45c5cd..d4d013550e 100644
--- a/apps/plugins/fractals/fractal.h
+++ b/apps/plugins/fractals/fractal.h
@@ -458,19 +458,7 @@
#define FRACTAL_PRECISION_DEC (BUTTON_PLAY | BUTTON_PREV)
#define FRACTAL_RESET (BUTTON_HOME | BUTTON_POWER)
-#elif CONFIG_KEYPAD == XDUOO_X3II_PAD
-#define FRACTAL_QUIT BUTTON_POWER
-#define FRACTAL_UP BUTTON_HOME
-#define FRACTAL_DOWN BUTTON_OPTION
-#define FRACTAL_LEFT BUTTON_PREV
-#define FRACTAL_RIGHT BUTTON_NEXT
-#define FRACTAL_ZOOM_IN BUTTON_VOL_UP
-#define FRACTAL_ZOOM_OUT BUTTON_VOL_DOWN
-#define FRACTAL_PRECISION_INC (BUTTON_PLAY | BUTTON_NEXT)
-#define FRACTAL_PRECISION_DEC (BUTTON_PLAY | BUTTON_PREV)
-#define FRACTAL_RESET (BUTTON_HOME | BUTTON_POWER)
-
-#elif CONFIG_KEYPAD == XDUOO_X20_PAD
+#elif CONFIG_KEYPAD == XDUOO_X3II_PAD || CONFIG_KEYPAD == XDUOO_X20_PAD
#define FRACTAL_QUIT BUTTON_POWER
#define FRACTAL_UP BUTTON_HOME
#define FRACTAL_DOWN BUTTON_OPTION
@@ -494,7 +482,7 @@
#define FRACTAL_PRECISION_DEC (BUTTON_PLAY | BUTTON_PREV)
#define FRACTAL_RESET (BUTTON_HOME | BUTTON_POWER)
-#elif CONFIG_KEYPAD == IHIFI_770_PAD
+#elif CONFIG_KEYPAD == IHIFI_770_PAD || CONFIG_KEYPAD == IHIFI_800_PAD
#define FRACTAL_QUIT BUTTON_POWER
#define FRACTAL_UP BUTTON_PREV
#define FRACTAL_DOWN BUTTON_NEXT
@@ -506,17 +494,17 @@
#define FRACTAL_PRECISION_DEC (BUTTON_POWER | BUTTON_PREV)
#define FRACTAL_RESET (BUTTON_POWER | BUTTON_HOME)
-#elif CONFIG_KEYPAD == IHIFI_800_PAD
+#elif CONFIG_KEYPAD == EROSQ_PAD
#define FRACTAL_QUIT BUTTON_POWER
#define FRACTAL_UP BUTTON_PREV
#define FRACTAL_DOWN BUTTON_NEXT
-#define FRACTAL_LEFT BUTTON_HOME
-#define FRACTAL_RIGHT BUTTON_VOL_DOWN
-#define FRACTAL_ZOOM_IN (BUTTON_POWER | BUTTON_VOL_UP)
-#define FRACTAL_ZOOM_OUT (BUTTON_POWER | BUTTON_VOL_DOWN)
-#define FRACTAL_PRECISION_INC (BUTTON_POWER | BUTTON_NEXT)
-#define FRACTAL_PRECISION_DEC (BUTTON_POWER | BUTTON_PREV)
-#define FRACTAL_RESET (BUTTON_POWER | BUTTON_HOME)
+#define FRACTAL_LEFT BUTTON_SCROLL_BACK
+#define FRACTAL_RIGHT BUTTON_SCROLL_FWD
+#define FRACTAL_ZOOM_IN BUTTON_VOL_UP
+#define FRACTAL_ZOOM_OUT BUTTON_VOL_DOWN
+#define FRACTAL_PRECISION_INC BUTTON_MENU
+#define FRACTAL_PRECISION_DEC BUTTON_BACK
+#define FRACTAL_RESET BUTTON_PLAY
#else
#error No keymap defined!
@@ -555,4 +543,3 @@
#endif
#endif
-