diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2006-10-26 13:38:09 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2006-10-26 13:38:09 +0000 |
commit | 24f4a2a8cfd561657ce25ebf93470716f07397fe (patch) | |
tree | f411d86cb56bd128fe0206d148005f0a882f686a /uisimulator/sdl/button.c | |
parent | 34193e5cf23e7d739c2ccda0ed82e77492578cef (diff) | |
download | rockbox-24f4a2a8cfd561657ce25ebf93470716f07397fe.tar.gz rockbox-24f4a2a8cfd561657ce25ebf93470716f07397fe.zip |
Allow the Sansa e200 UI simulator to be built. Thanks to Andre Smith for the nice image of the Sansa. Lots more to be done including testing and tweaking the keymaps and modifying the plugins for the Sansa's 176x220 LCD.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11351 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl/button.c')
-rw-r--r-- | uisimulator/sdl/button.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 22cfda1119..4408dde3e9 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c | |||
@@ -467,17 +467,17 @@ void button_event(int key, bool pressed) | |||
467 | break; | 467 | break; |
468 | case SDLK_KP8: | 468 | case SDLK_KP8: |
469 | case SDLK_UP: | 469 | case SDLK_UP: |
470 | new_btn = BUTTON_UP; | 470 | new_btn = BUTTON_SCROLL_UP; |
471 | break; | 471 | break; |
472 | case SDLK_KP2: | 472 | case SDLK_KP2: |
473 | case SDLK_DOWN: | 473 | case SDLK_DOWN: |
474 | new_btn = BUTTON_DOWN; | 474 | new_btn = BUTTON_SCROLL_DOWN; |
475 | break; | 475 | break; |
476 | case SDLK_KP9: | 476 | case SDLK_KP9: |
477 | new_btn = BUTTON_SCROLL_UP; | 477 | new_btn = BUTTON_UP; |
478 | break; | 478 | break; |
479 | case SDLK_KP3: | 479 | case SDLK_KP3: |
480 | new_btn = BUTTON_SCROLL_DOWN; | 480 | new_btn = BUTTON_DOWN; |
481 | break; | 481 | break; |
482 | case SDLK_KP1: | 482 | case SDLK_KP1: |
483 | new_btn = BUTTON_POWER; | 483 | new_btn = BUTTON_POWER; |
@@ -485,6 +485,10 @@ void button_event(int key, bool pressed) | |||
485 | case SDLK_KP7: | 485 | case SDLK_KP7: |
486 | new_btn = BUTTON_REC; | 486 | new_btn = BUTTON_REC; |
487 | break; | 487 | break; |
488 | case SDLK_KP5: | ||
489 | case SDLK_SPACE: | ||
490 | new_btn = BUTTON_SELECT; | ||
491 | break; | ||
488 | 492 | ||
489 | #endif /* CONFIG_KEYPAD */ | 493 | #endif /* CONFIG_KEYPAD */ |
490 | case SDLK_KP0: | 494 | case SDLK_KP0: |