mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Sansa Clip simulator
First draft at keymapping based on e200 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18948 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c5685ed72d
commit
cd9b1379ff
10 changed files with 390 additions and 22 deletions
|
|
@ -50,10 +50,10 @@ int button_read_device(void)
|
|||
/* C4B0 is unused */
|
||||
|
||||
if (GPIOB_PIN(1))
|
||||
result |= BUTTON_VOLUP;
|
||||
result |= BUTTON_VOL_UP;
|
||||
|
||||
if (GPIOB_PIN(2))
|
||||
result |= BUTTON_PLAY;
|
||||
result |= BUTTON_UP;
|
||||
|
||||
GPIOC_PIN(4) = 0x00;
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ int button_read_device(void)
|
|||
result |= BUTTON_DOWN;
|
||||
|
||||
if (GPIOB_PIN(1))
|
||||
result |= BUTTON_VOLDOWN;
|
||||
result |= BUTTON_VOL_DOWN;
|
||||
|
||||
if (GPIOB_PIN(2))
|
||||
result |= BUTTON_HOME;
|
||||
|
|
|
|||
|
|
@ -34,10 +34,10 @@ bool button_hold(void);
|
|||
/* Main unit's buttons */
|
||||
#define BUTTON_HOME 0x00000001
|
||||
|
||||
#define BUTTON_VOLUP 0x00000002
|
||||
#define BUTTON_VOLDOWN 0x00000004
|
||||
#define BUTTON_VOL_UP 0x00000002
|
||||
#define BUTTON_VOL_DOWN 0x00000004
|
||||
|
||||
#define BUTTON_PLAY 0x00000008
|
||||
#define BUTTON_UP 0x00000008
|
||||
#define BUTTON_DOWN 0x00000010
|
||||
#define BUTTON_LEFT 0x00000020
|
||||
#define BUTTON_RIGHT 0x00000040
|
||||
|
|
@ -48,7 +48,7 @@ bool button_hold(void);
|
|||
#define BUTTON_HOLD 0x00000200
|
||||
|
||||
#define BUTTON_MAIN (BUTTON_HOME|BUTTON_VOLUP|BUTTON_VOLDOWN\
|
||||
|BUTTON_PLAY|BUTTON_DOWN|BUTTON_LEFT|BUTTON_RIGHT\
|
||||
|BUTTON_UP|BUTTON_DOWN|BUTTON_LEFT|BUTTON_RIGHT\
|
||||
|BUTTON_SELECT|BUTTON_POWER|BUTTON_HOLD)
|
||||
|
||||
#define BUTTON_REMOTE 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue