diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-01-19 22:07:28 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-01-19 22:07:28 +0000 |
commit | 6915340f2d211723a79ddbbb7bde55ee00232ae5 (patch) | |
tree | 1df14359c00b9e1a1dc9eb7173b8d67f5e8ea278 /uisimulator/sdl/button.c | |
parent | 8d29cadaa1b92561862f1514c2cca3962e486d80 (diff) | |
download | rockbox-6915340f2d211723a79ddbbb7bde55ee00232ae5.tar.gz rockbox-6915340f2d211723a79ddbbb7bde55ee00232ae5.zip |
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
Diffstat (limited to 'uisimulator/sdl/button.c')
-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 | } |