mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
xworld: support diagonal buttons on Zen X-Fi
Change-Id: Ia738ecd2a39c0c0772d6f939d549dd5d0eda055e
This commit is contained in:
parent
bb55fceb70
commit
23e7d0ef19
4 changed files with 19 additions and 6 deletions
|
@ -68,12 +68,23 @@
|
|||
#define BTN_RIGHT BUTTON_RIGHT
|
||||
|
||||
#if (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD)
|
||||
#define BTN_HAVE_DIAGONAL
|
||||
#define BTN_UP_LEFT BUTTON_BACK
|
||||
#define BTN_UP_RIGHT BUTTON_PLAYPAUSE
|
||||
#define BTN_DOWN_LEFT BUTTON_BOTTOMLEFT
|
||||
#define BTN_DOWN_RIGHT BUTTON_BOTTOMRIGHT
|
||||
#endif
|
||||
|
||||
/* X-Fi doesn't have a separate *_PAD macro */
|
||||
#ifdef CREATIVE_ZENXFI
|
||||
#define BTN_HAVE_DIAGONAL
|
||||
#define BTN_DOWN_LEFT BUTTON_BOTTOMLEFT
|
||||
#define BTN_DOWN_RIGHT BUTTON_BOTTOMRIGHT
|
||||
#define BTN_UP_LEFT BUTTON_TOPLEFT
|
||||
#define BTN_UP_RIGHT BUTTON_TOPRIGHT
|
||||
#endif
|
||||
|
||||
|
||||
#if (CONFIG_KEYPAD == HM60X_PAD)
|
||||
#define BTN_FIRE BUTTON_POWER
|
||||
#define BTN_PAUSE BUTTON_SELECT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue