summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2024-12-23 15:56:50 +0100
committerChristian Soffke <christian.soffke@gmail.com>2024-12-25 08:34:40 -0500
commit32cc5ee8f93c1ee1fa0646fb0afbd222d4714935 (patch)
tree2191787180a121260272eeba6341f076fdf96d66
parent400452180d0bbf649119b80c4c93b7b6347848c1 (diff)
downloadrockbox-32cc5ee8f9.tar.gz
rockbox-32cc5ee8f9.zip
simulator: Press Tab to show/hide background
Change-Id: I80e8f629b1bbf37f92d243e190d541e7360e9dea
-rw-r--r--firmware/target/hosted/sdl/button-sdl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c
index 6f0d468d01..04d8cf6eae 100644
--- a/firmware/target/hosted/sdl/button-sdl.c
+++ b/firmware/target/hosted/sdl/button-sdl.c
@@ -351,6 +351,16 @@ static void button_event(int key, bool pressed)
switch (key)
{
#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:
display_zoom = 0.5;
case SDLK_1: