mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
simulator: Simulate external storage for HAVE_MULTIDRIVE.
The virtual external storage can be inserted/extracted with the e key. This has little effect because there is no way to access the storage (yet, a later commit will change this). Except on ondio where the mmc needs to be extracted before entering USB (like on real target). Change-Id: I523402832f3b4ae71e0603b281aba4fb8592a897
This commit is contained in:
parent
77f19f75eb
commit
facbaab195
5 changed files with 66 additions and 10 deletions
|
|
@ -56,6 +56,7 @@ static int mouse_coords = 0;
|
|||
#else
|
||||
#define USB_KEY SDLK_u
|
||||
#endif
|
||||
#define EXT_KEY SDLK_e
|
||||
|
||||
#if defined(IRIVER_H100_SERIES) || defined (IRIVER_H300_SERIES)
|
||||
int _remote_type=REMOTETYPE_H100_LCD;
|
||||
|
|
@ -322,6 +323,12 @@ static void button_event(int key, bool pressed)
|
|||
sim_trigger_usb(usb_connected);
|
||||
}
|
||||
return;
|
||||
#ifdef HAVE_MULTIDRIVE
|
||||
case EXT_KEY:
|
||||
if (!pressed)
|
||||
sim_trigger_external(!storage_present(1));
|
||||
return;
|
||||
#endif
|
||||
#endif
|
||||
#if (CONFIG_PLATFORM & PLATFORM_PANDORA)
|
||||
case SDLK_LCTRL:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue