From 613a26d507c8c79bc38710fbf4e6f619620e6f14 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 28 Feb 2011 00:03:42 +0000 Subject: 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 --- firmware/target/hosted/sdl/button-sdl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/target/hosted') 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) } return; +#if (CONFIG_PLATFORM & PLATFORM_PANDORA) + case SDLK_LCTRL: + /* Post SYS_POWEROFF event. Will post SDL_USEREVENT in shutdown_hw() if successful. */ + queue_broadcast(SYS_POWEROFF, 0); + break; +#endif #ifdef HAS_BUTTON_HOLD case SDLK_h: if(pressed) -- cgit v1.2.3