mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
m200v4: rename Keys, so they match better other targets with similar key-layout. Enable plugins, add keymaps for plugins. More keymap improvements needed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19405 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
790f5ae1e0
commit
90bcf9be5e
54 changed files with 408 additions and 103 deletions
|
|
@ -41,7 +41,7 @@ int button_read_device(void)
|
|||
|
||||
/* direct GPIO connections */
|
||||
if (GPIOA_PIN(3))
|
||||
result |= BUTTON_MENU;
|
||||
result |= BUTTON_POWER;
|
||||
|
||||
/* This is a keypad using A4-A6 as columns and A0-A2 as rows */
|
||||
GPIOA_PIN(4) = (1<<4);
|
||||
|
|
@ -50,10 +50,10 @@ int button_read_device(void)
|
|||
/* A4A0 is unused */
|
||||
|
||||
if (GPIOA_PIN(1))
|
||||
result |= BUTTON_VOLDOWN;
|
||||
result |= BUTTON_VOL_DOWN;
|
||||
|
||||
if (GPIOA_PIN(2))
|
||||
result |= BUTTON_PLAYPAUSE;
|
||||
result |= BUTTON_UP;
|
||||
|
||||
GPIOA_PIN(4) = 0x00;
|
||||
|
||||
|
|
@ -76,10 +76,10 @@ int button_read_device(void)
|
|||
btn_delay();
|
||||
|
||||
if (GPIOA_PIN(0))
|
||||
result |= BUTTON_REPEATAB;
|
||||
result |= BUTTON_DOWN;
|
||||
|
||||
if (GPIOA_PIN(1))
|
||||
result |= BUTTON_VOLUP;
|
||||
result |= BUTTON_VOL_UP;
|
||||
|
||||
/* hold button is read in button_hold() */
|
||||
|
||||
|
|
|
|||
|
|
@ -32,24 +32,24 @@ int button_read_device(void);
|
|||
bool button_hold(void);
|
||||
|
||||
/* Main unit's buttons */
|
||||
#define BUTTON_MENU 0x00000001
|
||||
#define BUTTON_VOLUP 0x00000002
|
||||
#define BUTTON_VOLDOWN 0x00000004
|
||||
#define BUTTON_PLAYPAUSE 0x00000008
|
||||
#define BUTTON_REPEATAB 0x00000010
|
||||
#define BUTTON_POWER 0x00000001
|
||||
#define BUTTON_VOL_UP 0x00000002
|
||||
#define BUTTON_VOL_DOWN 0x00000004
|
||||
#define BUTTON_UP 0x00000008
|
||||
#define BUTTON_DOWN 0x00000010
|
||||
#define BUTTON_LEFT 0x00000020
|
||||
#define BUTTON_RIGHT 0x00000040
|
||||
#define BUTTON_SELECT 0x00000080
|
||||
#define BUTTON_HOLD 0x00000100
|
||||
|
||||
#define BUTTON_MAIN (BUTTON_MENU|BUTTON_VOLUP|BUTTON_VOLDOWN\
|
||||
|BUTTON_PLAYPAUSE|BUTTON_REPEATAB|BUTTON_LEFT\
|
||||
#define BUTTON_MAIN (BUTTON_POWER|BUTTON_VOL_UP|BUTTON_VOL_DOWN\
|
||||
|BUTTON_UP|BUTTON_DOWN|BUTTON_LEFT\
|
||||
|BUTTON_RIGHT|BUTTON_SELECT|BUTTON_HOLD)
|
||||
|
||||
#define BUTTON_REMOTE 0
|
||||
|
||||
/* Software power-off */
|
||||
#define POWEROFF_BUTTON BUTTON_MENU
|
||||
#define POWEROFF_BUTTON BUTTON_POWER
|
||||
#define POWEROFF_COUNT 40
|
||||
|
||||
#endif /* _BUTTON_TARGET_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue