summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-02-21 11:25:07 +0100
committerThomas Martitz <kugel@rockbox.org>2014-02-23 20:23:51 +0100
commitfacbaab1953f9ab355fb3a3259dc0acbaabd9cc5 (patch)
treec1fa92517f9eca705f66a1b88667aa41b3299fe3 /firmware/target
parent77f19f75eb3661b3e3966da20effa2631ed380f1 (diff)
downloadrockbox-facbaab1953f9ab355fb3a3259dc0acbaabd9cc5.tar.gz
rockbox-facbaab1953f9ab355fb3a3259dc0acbaabd9cc5.zip
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
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/hosted/sdl/button-sdl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c
index 1ed07c153c..9677f1dd23 100644
--- a/firmware/target/hosted/sdl/button-sdl.c
+++ b/firmware/target/hosted/sdl/button-sdl.c
@@ -56,6 +56,7 @@ static int mouse_coords = 0;
56#else 56#else
57#define USB_KEY SDLK_u 57#define USB_KEY SDLK_u
58#endif 58#endif
59#define EXT_KEY SDLK_e
59 60
60#if defined(IRIVER_H100_SERIES) || defined (IRIVER_H300_SERIES) 61#if defined(IRIVER_H100_SERIES) || defined (IRIVER_H300_SERIES)
61int _remote_type=REMOTETYPE_H100_LCD; 62int _remote_type=REMOTETYPE_H100_LCD;
@@ -322,6 +323,12 @@ static void button_event(int key, bool pressed)
322 sim_trigger_usb(usb_connected); 323 sim_trigger_usb(usb_connected);
323 } 324 }
324 return; 325 return;
326#ifdef HAVE_MULTIDRIVE
327 case EXT_KEY:
328 if (!pressed)
329 sim_trigger_external(!storage_present(1));
330 return;
331#endif
325#endif 332#endif
326#if (CONFIG_PLATFORM & PLATFORM_PANDORA) 333#if (CONFIG_PLATFORM & PLATFORM_PANDORA)
327 case SDLK_LCTRL: 334 case SDLK_LCTRL: