mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
simulator: Press Tab to show/hide background
Change-Id: I80e8f629b1bbf37f92d243e190d541e7360e9dea
This commit is contained in:
parent
400452180d
commit
32cc5ee8f9
1 changed files with 10 additions and 0 deletions
|
@ -351,6 +351,16 @@ static void button_event(int key, bool pressed)
|
||||||
switch (key)
|
switch (key)
|
||||||
{
|
{
|
||||||
#ifdef SIMULATOR
|
#ifdef SIMULATOR
|
||||||
|
case SDLK_TAB:
|
||||||
|
if (!pressed)
|
||||||
|
{
|
||||||
|
background = !background;
|
||||||
|
sdl_window_adjustment_needed(true);
|
||||||
|
#if !defined(__WIN32) && !defined (__APPLE__)
|
||||||
|
button_queue_post(SDLK_UNKNOWN, 0); /* update window on main thread */
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
return;
|
||||||
case SDLK_0:
|
case SDLK_0:
|
||||||
display_zoom = 0.5;
|
display_zoom = 0.5;
|
||||||
case SDLK_1:
|
case SDLK_1:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue