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
This commit is contained in:
Thomas Martitz 2010-07-06 15:11:56 +00:00
parent 9da707955d
commit 31b5c471ae
21 changed files with 361 additions and 16 deletions

View file

@ -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