mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
[Feature] Simulator add headphone and lineout toggling
Change-Id: I0b019414643e5c9037c0128093488da49e1a4c0d
This commit is contained in:
parent
7ec1151ddd
commit
aca41be3ca
4 changed files with 52 additions and 15 deletions
|
|
@ -320,6 +320,26 @@ static void button_event(int key, bool pressed)
|
|||
sim_trigger_usb(usb_connected);
|
||||
}
|
||||
return;
|
||||
#ifdef HAVE_HEADPHONE_DETECTION
|
||||
case SDLK_p:
|
||||
if (!pressed)
|
||||
{
|
||||
static bool hp_connected = false;
|
||||
hp_connected = !hp_connected;
|
||||
sim_trigger_hp(hp_connected);
|
||||
}
|
||||
return;
|
||||
#endif
|
||||
#ifdef HAVE_LINEOUT_DETECTION
|
||||
case SDLK_l:
|
||||
if (!pressed)
|
||||
{
|
||||
static bool lo_connected = false;
|
||||
lo_connected = !lo_connected;
|
||||
sim_trigger_lo(lo_connected);
|
||||
}
|
||||
return;
|
||||
#endif
|
||||
#ifdef HAVE_MULTIDRIVE
|
||||
case EXT_KEY:
|
||||
if (!pressed)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue