summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2008-11-03 13:20:06 +0000
committerRafaël Carré <rafael.carre@gmail.com>2008-11-03 13:20:06 +0000
commitd34837cba14de3792bd84753370cb8bd92beedbf (patch)
treee6fbfe9b2b5a9708ea084392812dae735d5eea1e /uisimulator
parenta3c7127b53adfcff922691e978202d258fcd2e9e (diff)
downloadrockbox-d34837cba14de3792bd84753370cb8bd92beedbf.tar.gz
rockbox-d34837cba14de3792bd84753370cb8bd92beedbf.tar.bz2
rockbox-d34837cba14de3792bd84753370cb8bd92beedbf.zip
Sansa Clip simulator: bind p/escape to power button
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18986 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/button.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 9f86cd8ed0..840a599aac 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -980,6 +980,10 @@ void button_event(int key, bool pressed)
case SDLK_PAGEUP:
new_btn = BUTTON_VOL_UP;
break;
+ case SDLK_ESCAPE:
+ case SDLK_p:
+ new_btn = BUTTON_POWER;
+ break;
#else
#error No keymap defined!
#endif /* CONFIG_KEYPAD */