mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
Add configurable acceleration settings. There are 3 settings which
are applied at different times during scrolling. "accel" is used to
calculate the acceleration applied to the list based on the swipe
speed. "decel" determines the deceleration force applied based on
the list scroll speed, and "press" is an additional deceleration
force applied if you are pressing on the screen.
All settings have the general form:
kinetic scroll accel: <a0> <a1> <delay>
kinetic scroll decel: <a0> <a1> <delay>
kinetic scroll press: <a0> <a1> <delay>
where the formula for the acceleration is "accel = a0 + a1*vel" and
"vel" is the input velocity (swipe speed for accel, list scroll speed
for decel/press).
The delay parameter is a value in milliseconds which acts as a grace
period where the acceleration will *not* be applied. For example, if
you specify 250ms for decel, then deceleration will not kick in until
250ms after scrolling starts. For press, the delay is based on the
duration of the touchscreen press.
All settings have sane default values and don't need to be configured
to enable kinetic scrolling; it is always enabled. But the settings are
there for those who want to tweak the behavior.
Change-Id: I9723b496b2b5d3fb3643af60b169754fdba497f0
|
||
|---|---|---|
| .. | ||
| bitmap | ||
| skin_engine | ||
| backdrop.c | ||
| backdrop.h | ||
| color_picker.c | ||
| color_picker.h | ||
| folder_select.c | ||
| folder_select.h | ||
| icon.c | ||
| icon.h | ||
| line.c | ||
| line.h | ||
| list.c | ||
| list.h | ||
| mask_select.c | ||
| mask_select.h | ||
| option_select.c | ||
| option_select.h | ||
| pitchscreen.c | ||
| pitchscreen.h | ||
| quickscreen.c | ||
| quickscreen.h | ||
| scrollbar.c | ||
| scrollbar.h | ||
| splash.c | ||
| splash.h | ||
| statusbar-skinned.c | ||
| statusbar-skinned.h | ||
| statusbar.c | ||
| statusbar.h | ||
| usb_screen.c | ||
| usb_screen.h | ||
| viewport.c | ||
| viewport.h | ||
| wps.c | ||
| wps.h | ||
| yesno.c | ||
| yesno.h | ||