diff options
Diffstat (limited to 'uisimulator/sdl')
-rw-r--r-- | uisimulator/sdl/button.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index fdabfcf5a4..0f9770dcac 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "misc.h" | 29 | #include "misc.h" |
30 | #include "sim_tasks.h" | 30 | #include "sim_tasks.h" |
31 | #include "button-sdl.h" | 31 | #include "button-sdl.h" |
32 | #include "backlight.h" | ||
32 | 33 | ||
33 | #include "debug.h" | 34 | #include "debug.h" |
34 | 35 | ||
@@ -1275,6 +1276,12 @@ void button_event(int key, bool pressed) | |||
1275 | * store the scroll forward/back buttons in their button data for | 1276 | * store the scroll forward/back buttons in their button data for |
1276 | * the button_read call. | 1277 | * the button_read call. |
1277 | */ | 1278 | */ |
1279 | #ifdef HAVE_BACKLIGHT | ||
1280 | backlight_on(); | ||
1281 | #endif | ||
1282 | #ifdef HAVE_BUTTON_LIGHT | ||
1283 | buttonlight_on(); | ||
1284 | #endif | ||
1278 | queue_post(&button_queue, new_btn, 1<<24); | 1285 | queue_post(&button_queue, new_btn, 1<<24); |
1279 | new_btn &= ~(BUTTON_SCROLL_FWD | BUTTON_SCROLL_BACK); | 1286 | new_btn &= ~(BUTTON_SCROLL_FWD | BUTTON_SCROLL_BACK); |
1280 | } | 1287 | } |