From 6915340f2d211723a79ddbbb7bde55ee00232ae5 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Tue, 19 Jan 2010 22:07:28 +0000 Subject: Fix FS#10867 and a few more potential issues by imitate target scrollwheel behavior more (although that behavior is suboptimal imo). Also, default for maximum backlight brightness in the sim and move stuff into sim.h. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24289 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/button.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'uisimulator/sdl/button.c') 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 @@ #include "misc.h" #include "sim_tasks.h" #include "button-sdl.h" +#include "backlight.h" #include "debug.h" @@ -1275,6 +1276,12 @@ void button_event(int key, bool pressed) * store the scroll forward/back buttons in their button data for * the button_read call. */ +#ifdef HAVE_BACKLIGHT + backlight_on(); +#endif +#ifdef HAVE_BUTTON_LIGHT + buttonlight_on(); +#endif queue_post(&button_queue, new_btn, 1<<24); new_btn &= ~(BUTTON_SCROLL_FWD | BUTTON_SCROLL_BACK); } -- cgit v1.2.3