diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-05-30 12:12:29 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2024-05-30 12:12:29 -0400 |
commit | aca41be3cae3278f102671f9b914d0c9f2b8920d (patch) | |
tree | b4294b9a4c8164786cd685b722072557aac47e48 /firmware/target | |
parent | 7ec1151dddb0b15796113e41284757408e94a63f (diff) | |
download | rockbox-aca41be3cae3278f102671f9b914d0c9f2b8920d.tar.gz rockbox-aca41be3cae3278f102671f9b914d0c9f2b8920d.zip |
[Feature] Simulator add headphone and lineout toggling
Change-Id: I0b019414643e5c9037c0128093488da49e1a4c0d
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/hosted/sdl/button-sdl.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c index dea25bff27..ccfb557014 100644 --- a/firmware/target/hosted/sdl/button-sdl.c +++ b/firmware/target/hosted/sdl/button-sdl.c | |||
@@ -320,6 +320,26 @@ static void button_event(int key, bool pressed) | |||
320 | sim_trigger_usb(usb_connected); | 320 | sim_trigger_usb(usb_connected); |
321 | } | 321 | } |
322 | return; | 322 | return; |
323 | #ifdef HAVE_HEADPHONE_DETECTION | ||
324 | case SDLK_p: | ||
325 | if (!pressed) | ||
326 | { | ||
327 | static bool hp_connected = false; | ||
328 | hp_connected = !hp_connected; | ||
329 | sim_trigger_hp(hp_connected); | ||
330 | } | ||
331 | return; | ||
332 | #endif | ||
333 | #ifdef HAVE_LINEOUT_DETECTION | ||
334 | case SDLK_l: | ||
335 | if (!pressed) | ||
336 | { | ||
337 | static bool lo_connected = false; | ||
338 | lo_connected = !lo_connected; | ||
339 | sim_trigger_lo(lo_connected); | ||
340 | } | ||
341 | return; | ||
342 | #endif | ||
323 | #ifdef HAVE_MULTIDRIVE | 343 | #ifdef HAVE_MULTIDRIVE |
324 | case EXT_KEY: | 344 | case EXT_KEY: |
325 | if (!pressed) | 345 | if (!pressed) |