summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-10-31 16:31:42 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-10-31 16:31:42 +0000
commit4b7de9188482db440680caa9d6f2c5713b5c8f4f (patch)
tree4425a977b1bfd2f3f6c2ce6770c46c22e38421ef
parent223eba732e99d869fa0f65f98153642bd8d058a6 (diff)
downloadrockbox-4b7de9188482db440680caa9d6f2c5713b5c8f4f.tar.gz
rockbox-4b7de9188482db440680caa9d6f2c5713b5c8f4f.zip
Simulator: change the fix around so that it applies to all scrollwheel targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23439 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--uisimulator/sdl/button.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index da672f3c92..45de7a469f 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -1243,7 +1243,7 @@ void button_event(int key, bool pressed)
1243 * implementation (look at button-e200.c for example if you are trying to 1243 * implementation (look at button-e200.c for example if you are trying to
1244 * figure out why using button_get_data needed a hack before). 1244 * figure out why using button_get_data needed a hack before).
1245 */ 1245 */
1246#if defined(HAVE_WHEEL_ACCELERATION) 1246#if defined(BUTTON_SCROLL_FWD) && defined(BUTTON_SCROLL_BACK)
1247 if((new_btn == BUTTON_SCROLL_FWD || new_btn == BUTTON_SCROLL_BACK) && 1247 if((new_btn == BUTTON_SCROLL_FWD || new_btn == BUTTON_SCROLL_BACK) &&
1248 pressed) 1248 pressed)
1249 { 1249 {
@@ -1252,8 +1252,8 @@ void button_event(int key, bool pressed)
1252 * store the scroll forward/back buttons in their button data for 1252 * store the scroll forward/back buttons in their button data for
1253 * the button_read call. 1253 * the button_read call.
1254 */ 1254 */
1255 btn &= ~(BUTTON_SCROLL_FWD | BUTTON_SCROLL_BACK);
1256 queue_post(&button_queue, new_btn, 1<<24); 1255 queue_post(&button_queue, new_btn, 1<<24);
1256 new_btn &= ~(BUTTON_SCROLL_FWD | BUTTON_SCROLL_BACK);
1257 } 1257 }
1258#endif 1258#endif
1259 1259