mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-30 23:30:08 +01:00
evdev: rename post_trackpoint_scroll to post_button_scroll
This is no longer trackpoint-only, so let's rename this. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
e59dc2ec58
commit
0bb82faab1
1 changed files with 4 additions and 4 deletions
|
|
@ -100,9 +100,9 @@ fallback_normalize_delta(struct evdev_device *device,
|
|||
}
|
||||
|
||||
static inline bool
|
||||
post_trackpoint_scroll(struct evdev_device *device,
|
||||
struct normalized_coords unaccel,
|
||||
uint64_t time)
|
||||
post_button_scroll(struct evdev_device *device,
|
||||
struct normalized_coords unaccel,
|
||||
uint64_t time)
|
||||
{
|
||||
if (device->scroll.method != LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN)
|
||||
return false;
|
||||
|
|
@ -190,7 +190,7 @@ fallback_flush_relative_motion(struct fallback_dispatch *dispatch,
|
|||
dispatch->rel.y = 0;
|
||||
|
||||
/* Use unaccelerated deltas for pointing stick scroll */
|
||||
if (post_trackpoint_scroll(device, unaccel, time))
|
||||
if (post_button_scroll(device, unaccel, time))
|
||||
return;
|
||||
|
||||
if (device->pointer.filter) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue