summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2006-07-19 00:39:30 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2006-07-19 00:39:30 +0000
commit5aa017b0400bb1115555a23d4f69acaf4feca0e7 (patch)
tree3185452f0818e50e7107a6945985428779c0a716 /uisimulator
parent50f7e4e083f83fa340d9862d4e8d474c6a7f3b46 (diff)
downloadrockbox-5aa017b0400bb1115555a23d4f69acaf4feca0e7.tar.gz
rockbox-5aa017b0400bb1115555a23d4f69acaf4feca0e7.tar.bz2
rockbox-5aa017b0400bb1115555a23d4f69acaf4feca0e7.zip
Simulator: map ESC key to POWER button as a way to exit plugins. Patch #5681 by Rani Hod (RaeNye).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10244 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/button.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 35c800367c..c5bc51816b 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -115,6 +115,12 @@ void button_event(int key, bool pressed)
#endif
break;
+ case SDLK_ESCAPE:
+#if defined BUTTON_POWER
+ new_btn = BUTTON_POWER;
+#endif
+ break;
+
case SDLK_KP_ENTER:
case SDLK_RETURN:
case SDLK_a: