forked from len0rd/rockbox
iPod: Initial attempt at button mappings for plugins. All plugins now compile, but more work is needed with the more complex ones to make them iPod friendly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8233 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c75425511e
commit
54d44c893f
28 changed files with 361 additions and 65 deletions
|
@ -24,11 +24,19 @@
|
|||
static struct plugin_api* rb; /* global api struct pointer */
|
||||
|
||||
/* Key assignement */
|
||||
#if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_NANO_PAD)
|
||||
#define STARFIELD_QUIT BUTTON_MENU
|
||||
#define STARFIELD_INCREASE_ZMOVE BUTTON_SCROLL_FWD
|
||||
#define STARFIELD_DECREASE_ZMOVE BUTTON_SCROLL_BACK
|
||||
#define STARFIELD_INCREASE_NB_STARS BUTTON_RIGHT
|
||||
#define STARFIELD_DECREASE_NB_STARS BUTTON_LEFT
|
||||
#else
|
||||
#define STARFIELD_QUIT BUTTON_OFF
|
||||
#define STARFIELD_INCREASE_ZMOVE BUTTON_UP
|
||||
#define STARFIELD_DECREASE_ZMOVE BUTTON_DOWN
|
||||
#define STARFIELD_INCREASE_NB_STARS BUTTON_RIGHT
|
||||
#define STARFIELD_DECREASE_NB_STARS BUTTON_LEFT
|
||||
#endif
|
||||
|
||||
#define LCD_CENTER_X (LCD_WIDTH/2)
|
||||
#define LCD_CENTER_Y (LCD_HEIGHT/2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue