Touchscreen: button driver improvements
commit72e73eb806cbbf146f9cdf3e0583c2a287aae57f
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 22 Sep 2010 23:01:51 +0000 (22 23:01 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Wed, 22 Sep 2010 23:01:51 +0000 (22 23:01 +0000)
treebf92493a055937f661f58d230afed5db906b0381
parentd583382293200a5f181f649f274aa6ccd71f50e4
Touchscreen: button driver improvements

* Until BUTTON_REPEAT was started, coordinate changes were not exposed. Change
that (post on every coordinate change) so that wiping over the screen does actually
something between the first touch and BUTTON_REPEAT
* Once BUTTON_REPEAT is active, further repeats are posted in an acceleration
fashion (slow at the begginning), which smoothes list scrolling. But this has
the contrary effect on touchscreen, as it makes swiping appear very laggy. So,
remove that acceleration for touchscreen and make it equally fast at all times
so the scrollbar is better usable.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28143 a1c6a512-1295-4272-9138-f99709370657
firmware/drivers/button.c