diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-03-06 15:53:45 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-03-06 15:53:45 +0000 |
commit | 7901505dc328f82e91eefe281204bb7b08799d99 (patch) | |
tree | 31819a9ed8b4cdbc6bc60831ff32dd8245efcc11 /firmware/target | |
parent | 70f6e62769c60f66a826fa22c8f2ffec3c0d37af (diff) |
Higher responsiveness for iPod clickwheel acceleration.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25047 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/ipod/button-clickwheel.c | 2 |
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) 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; |