diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2011-11-17 19:52:59 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2011-11-17 19:52:59 +0000 |
| commit | 71d73fd470e339adff65aff0db6a44d1d6418b31 (patch) | |
| tree | 74f8d82b2eb72dd229c33b925b37976327901aaf /firmware/target/hosted | |
| parent | 7e211ff9d14aa732d1f54271f8a46ffc2e1b6342 (diff) | |
| download | rockbox-71d73fd470e339adff65aff0db6a44d1d6418b31.zip rockbox-71d73fd470e339adff65aff0db6a44d1d6418b31.tar.gz rockbox-71d73fd470e339adff65aff0db6a44d1d6418b31.tar.bz2 rockbox-71d73fd470e339adff65aff0db6a44d1d6418b31.tar.xz | |
Remove sim_tasks from the sdl application build.
This unfortunately removes the screendump feature, but usually there are better desktop apps for that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31011 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/hosted')
| -rw-r--r-- | firmware/target/hosted/sdl/button-sdl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c index 837cba4..335685a 100644 --- a/firmware/target/hosted/sdl/button-sdl.c +++ b/firmware/target/hosted/sdl/button-sdl.c @@ -309,10 +309,9 @@ static void button_event(int key, bool pressed) { int new_btn = 0; static bool usb_connected = false; - if (usb_connected && key != USB_KEY) - return; switch (key) { +#ifdef SIMULATOR case USB_KEY: if (!pressed) { @@ -320,7 +319,7 @@ static void button_event(int key, bool pressed) sim_trigger_usb(usb_connected); } return; - +#endif #if (CONFIG_PLATFORM & PLATFORM_PANDORA) case SDLK_LCTRL: /* Will post SDL_USEREVENT in shutdown_hw() if successful. */ @@ -372,6 +371,7 @@ static void button_event(int key, bool pressed) } break; #endif +#ifndef APPLICATION case SDLK_KP0: case SDLK_F5: if(pressed) @@ -380,6 +380,7 @@ static void button_event(int key, bool pressed) return; } break; +#endif #ifdef HAVE_TOUCHSCREEN case SDLK_F4: if(pressed) |