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:
parent
70f6e62769
commit
7901505dc3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue