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
This commit is contained in:
Thomas Jarosch 2011-02-28 00:03:42 +00:00
parent 389fa27e41
commit 613a26d507

View file

@ -322,6 +322,12 @@ static void button_event(int key, bool pressed)
} }
return; 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 #ifdef HAS_BUTTON_HOLD
case SDLK_h: case SDLK_h:
if(pressed) if(pressed)