summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/sdl/button-sdl.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-07-06 15:11:56 +0000
committerThomas Martitz <kugel@rockbox.org>2010-07-06 15:11:56 +0000
commit31b5c471aeec6040ca69e3bea59c0825e2a6fc9d (patch)
tree628d7638a50ab226d5164f495d14d56ed2b51a1f /firmware/target/hosted/sdl/button-sdl.c
parent9da707955dcdefa1b7a55348937eb706a08039b5 (diff)
downloadrockbox-31b5c471aeec6040ca69e3bea59c0825e2a6fc9d.tar.gz
rockbox-31b5c471aeec6040ca69e3bea59c0825e2a6fc9d.zip
Rockbox as an application: Add an 320x240 SDL application target.
It still works mostly like the simulator. There's also some minor left overs from the sim, but it does not define SIMULATOR. It installs into the current (build) dir, and you need to run it with '--root .' (because it looks for ./.rockbox and not ./simdisk/rockbox) as options. That's one of the few kludges left that should be resolved soon'ish. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27310 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/hosted/sdl/button-sdl.c')
-rw-r--r--firmware/target/hosted/sdl/button-sdl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c
index 8b236c19f1..837c16c2ea 100644
--- a/firmware/target/hosted/sdl/button-sdl.c
+++ b/firmware/target/hosted/sdl/button-sdl.c
@@ -31,10 +31,8 @@
#include "misc.h"
#include "button-sdl.h"
#include "backlight.h"
-#ifdef SIMULATOR
#include "sim_tasks.h"
#include "buttonmap.h"
-#endif
#include "debug.h"
#ifdef HAVE_TOUCHSCREEN
@@ -139,6 +137,7 @@ bool gui_message_loop(void)
x = event.button.x;
y = event.button.y;
}
+#ifdef SIMULATOR
if ( background ) {
xybutton = xy2button( event.button.x, event.button.y );
if( xybutton ) {
@@ -146,6 +145,7 @@ bool gui_message_loop(void)
break;
}
}
+#endif
#ifdef HAVE_TOUCHSCREEN
touchscreen_event(event.button.x, event.button.y);
#endif