diff options
| author | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-07-19 00:39:30 +0000 |
|---|---|---|
| committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2006-07-19 00:39:30 +0000 |
| commit | 5aa017b0400bb1115555a23d4f69acaf4feca0e7 (patch) | |
| tree | 3185452f0818e50e7107a6945985428779c0a716 | |
| parent | 50f7e4e083f83fa340d9862d4e8d474c6a7f3b46 (diff) | |
| download | rockbox-5aa017b0400bb1115555a23d4f69acaf4feca0e7.zip rockbox-5aa017b0400bb1115555a23d4f69acaf4feca0e7.tar.gz rockbox-5aa017b0400bb1115555a23d4f69acaf4feca0e7.tar.bz2 rockbox-5aa017b0400bb1115555a23d4f69acaf4feca0e7.tar.xz | |
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
| -rw-r--r-- | uisimulator/sdl/button.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 35c8003..c5bc518 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: |