diff options
Diffstat (limited to 'firmware/target/hosted/sdl/button-sdl.c')
-rw-r--r-- | firmware/target/hosted/sdl/button-sdl.c | 4 |
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 @@ | |||
31 | #include "misc.h" | 31 | #include "misc.h" |
32 | #include "button-sdl.h" | 32 | #include "button-sdl.h" |
33 | #include "backlight.h" | 33 | #include "backlight.h" |
34 | #ifdef SIMULATOR | ||
35 | #include "sim_tasks.h" | 34 | #include "sim_tasks.h" |
36 | #include "buttonmap.h" | 35 | #include "buttonmap.h" |
37 | #endif | ||
38 | #include "debug.h" | 36 | #include "debug.h" |
39 | 37 | ||
40 | #ifdef HAVE_TOUCHSCREEN | 38 | #ifdef HAVE_TOUCHSCREEN |
@@ -139,6 +137,7 @@ bool gui_message_loop(void) | |||
139 | x = event.button.x; | 137 | x = event.button.x; |
140 | y = event.button.y; | 138 | y = event.button.y; |
141 | } | 139 | } |
140 | #ifdef SIMULATOR | ||
142 | if ( background ) { | 141 | if ( background ) { |
143 | xybutton = xy2button( event.button.x, event.button.y ); | 142 | xybutton = xy2button( event.button.x, event.button.y ); |
144 | if( xybutton ) { | 143 | if( xybutton ) { |
@@ -146,6 +145,7 @@ bool gui_message_loop(void) | |||
146 | break; | 145 | break; |
147 | } | 146 | } |
148 | } | 147 | } |
148 | #endif | ||
149 | #ifdef HAVE_TOUCHSCREEN | 149 | #ifdef HAVE_TOUCHSCREEN |
150 | touchscreen_event(event.button.x, event.button.y); | 150 | touchscreen_event(event.button.x, event.button.y); |
151 | #endif | 151 | #endif |