pdbox: Add a keymap for the ErosQ family, enable it in the build

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Fri, 15 May 2026 10:54:12 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 89cb41c3228bce73dd51d1da1f44258d167ef52f
Author: Solomon Peachy <[email protected]>
Date:   Fri May 15 10:53:45 2026 -0400

    pdbox:  Add a keymap for the ErosQ family, enable it in the build
    
    Change-Id: I9df8d8a8eac161aeaa133e234cc0c2a60b2f3f93

diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS
index 484eedf681..1ba38c97bb 100644
--- a/apps/plugins/SUBDIRS
+++ b/apps/plugins/SUBDIRS
@@ -74,7 +74,7 @@ mikmod
     (CONFIG_KEYPAD == SANSA_FUZE_PAD) || (CONFIG_KEYPAD == SANSA_E200_PAD) || \
     (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) || \
     (CONFIG_KEYPAD == IPOD_1G2G_PAD || CONFIG_KEYPAD == SAMSUNG_YPR0_PAD) || \
-    (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD) || (CONFIG_KEYPAD == CTRU_PAD)
+    (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD) || (CONFIG_KEYPAD == CTRU_PAD) || (CONFIG_KEYPAD == EROSQ_PAD)
 /* PDBox is confirmed to run on these player models. */
 pdbox
 #endif
diff --git a/apps/plugins/pdbox/pdbox.h b/apps/plugins/pdbox/pdbox.h
index 5d73414349..2d36f64a89 100644
--- a/apps/plugins/pdbox/pdbox.h
+++ b/apps/plugins/pdbox/pdbox.h
@@ -316,6 +316,15 @@ enum pd_key_id
     #define PDPOD_WHEELLEFT BUTTON_UP
     #define PDPOD_WHEELRIGHT BUTTON_DOWN
     #define PDPOD_ACTION    BUTTON_SELECT
+#elif (CONFIG_KEYPAD == EROSQ_PAD)
+    #define PDPOD_QUIT      BUTTON_POWER
+    #define PDPOD_PLAY      BUTTON_PLAY
+    #define PDPOD_PREVIOUS  BUTTON_PREV
+    #define PDPOD_NEXT      BUTTON_NEXT
+    #define PDPOD_MENU      BUTTON_MENU
+    #define PDPOD_WHEELLEFT BUTTON_SCROLL_BACK
+    #define PDPOD_WHEELRIGHT BUTTON_SCROLL_FWD
+    #define PDPOD_ACTION    BUTTON_BACK
 #else
     #warning "No keys defined for this architecture!"
 #endif
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs