1
0
Fork 0
forked from len0rd/rockbox

simulator: Press Tab to show/hide background

Change-Id: I80e8f629b1bbf37f92d243e190d541e7360e9dea
This commit is contained in:
Christian Soffke 2024-12-23 15:56:50 +01:00
parent 400452180d
commit 32cc5ee8f9

View file

@ -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: