diff options
author | Marcoen Hirschberg <marcoen@gmail.com> | 2006-02-24 15:42:52 +0000 |
---|---|---|
committer | Marcoen Hirschberg <marcoen@gmail.com> | 2006-02-24 15:42:52 +0000 |
commit | 338e2bbb0c6673452c64378ef9e609d5c19c7558 (patch) | |
tree | 7314096e43a7eedfd7091c39fed97c0c33400827 /uisimulator/sdl/button.c | |
parent | b902428180c11def61f2d3caa2612b9f80d7d41a (diff) |
first gigabeat commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8831 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl/button.c')
-rw-r--r-- | uisimulator/sdl/button.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 72224315a2..9571beac5e 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c @@ -86,14 +86,18 @@ void button_event(int key, bool pressed) new_btn = BUTTON_ON; #elif defined(BUTTON_SELECT) && defined(BUTTON_PLAY) new_btn = BUTTON_PLAY; +#elif defined BUTTON_POWER + new_btn = BUTTON_POWER; #endif break; + case SDLK_KP_ENTER: #ifdef BUTTON_OFF - case SDLK_RETURN: new_btn = BUTTON_OFF; - break; +#elif defined BUTTON_A + new_btn = BUTTON_A; #endif + break; #ifdef BUTTON_F1 case SDLK_KP_DIVIDE: |