summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-03-06 15:53:45 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-03-06 15:53:45 +0000
commit7901505dc328f82e91eefe281204bb7b08799d99 (patch)
tree31819a9ed8b4cdbc6bc60831ff32dd8245efcc11
parent70f6e62769c60f66a826fa22c8f2ffec3c0d37af (diff)
downloadrockbox-7901505dc328f82e91eefe281204bb7b08799d99.tar.gz
rockbox-7901505dc328f82e91eefe281204bb7b08799d99.zip
Higher responsiveness for iPod clickwheel acceleration.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25047 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/ipod/button-clickwheel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/ipod/button-clickwheel.c b/firmware/target/arm/ipod/button-clickwheel.c
index 9a2f38bc88..4c0bdbc813 100644
--- a/firmware/target/arm/ipod/button-clickwheel.c
+++ b/firmware/target/arm/ipod/button-clickwheel.c
@@ -185,7 +185,7 @@ static inline int ipod_4g_button_read(void)
185 v = (v<0) ? -v : v; /* undo signedness */ 185 v = (v<0) ? -v : v; /* undo signedness */
186 186
187 /* some velocity filtering to smooth things out */ 187 /* some velocity filtering to smooth things out */
188 wheel_velocity = (31 * wheel_velocity + v) / 32; 188 wheel_velocity = (15 * wheel_velocity + v) / 16;
189 /* limit to 24 bit */ 189 /* limit to 24 bit */
190 wheel_velocity = (wheel_velocity>0xffffff) ? 0xffffff : wheel_velocity; 190 wheel_velocity = (wheel_velocity>0xffffff) ? 0xffffff : wheel_velocity;
191 191