Higher responsiveness for iPod clickwheel acceleration.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25047 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andree Buschmann 2010-03-06 15:53:45 +00:00
parent 70f6e62769
commit 7901505dc3

View file

@ -185,7 +185,7 @@ static inline int ipod_4g_button_read(void)
v = (v<0) ? -v : v; /* undo signedness */
/* some velocity filtering to smooth things out */
wheel_velocity = (31 * wheel_velocity + v) / 32;
wheel_velocity = (15 * wheel_velocity + v) / 16;
/* limit to 24 bit */
wheel_velocity = (wheel_velocity>0xffffff) ? 0xffffff : wheel_velocity;