summaryrefslogtreecommitdiff
path: root/firmware/target/hosted
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-02-28 00:03:42 +0000
committerThomas Jarosch <tomj@simonv.com>2011-02-28 00:03:42 +0000
commit613a26d507c8c79bc38710fbf4e6f619620e6f14 (patch)
treef98185ff03a4f4fad557bff80c4918c4173a3acb /firmware/target/hosted
parent389fa27e414675fae75c7388993b144e0ac9f6e1 (diff)
downloadrockbox-613a26d507c8c79bc38710fbf4e6f619620e6f14.tar.gz
rockbox-613a26d507c8c79bc38710fbf4e6f619620e6f14.zip
Pandora port: Exit rockbox by pressing the SELECT button
Might get remapped to another button later on, for example if we map the START button to the main menu, then those two buttons are too close together. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29453 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r--firmware/target/hosted/sdl/button-sdl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c
index 9f1c1f7519..00afc0c8ef 100644
--- a/firmware/target/hosted/sdl/button-sdl.c
+++ b/firmware/target/hosted/sdl/button-sdl.c
@@ -322,6 +322,12 @@ static void button_event(int key, bool pressed)
322 } 322 }
323 return; 323 return;
324 324
325#if (CONFIG_PLATFORM & PLATFORM_PANDORA)
326 case SDLK_LCTRL:
327 /* Post SYS_POWEROFF event. Will post SDL_USEREVENT in shutdown_hw() if successful. */
328 queue_broadcast(SYS_POWEROFF, 0);
329 break;
330#endif
325#ifdef HAS_BUTTON_HOLD 331#ifdef HAS_BUTTON_HOLD
326 case SDLK_h: 332 case SDLK_h:
327 if(pressed) 333 if(pressed)