mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-04-23 06:20:41 +02:00
filter: use named initalizers for the accelerator interface
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
168c61920c
commit
dac38a0828
1 changed files with 16 additions and 16 deletions
32
src/filter.c
32
src/filter.c
|
|
@ -672,10 +672,10 @@ trackpoint_accel_profile(struct motion_filter *filter,
|
|||
}
|
||||
|
||||
struct motion_filter_interface accelerator_interface = {
|
||||
accelerator_filter,
|
||||
accelerator_restart,
|
||||
accelerator_destroy,
|
||||
accelerator_set_speed,
|
||||
.filter = accelerator_filter,
|
||||
.restart = accelerator_restart,
|
||||
.destroy = accelerator_destroy,
|
||||
.set_speed = accelerator_set_speed,
|
||||
};
|
||||
|
||||
static struct pointer_accelerator *
|
||||
|
|
@ -718,10 +718,10 @@ create_pointer_accelerator_filter_linear(int dpi)
|
|||
}
|
||||
|
||||
struct motion_filter_interface accelerator_interface_low_dpi = {
|
||||
accelerator_filter_low_dpi,
|
||||
accelerator_restart,
|
||||
accelerator_destroy,
|
||||
accelerator_set_speed,
|
||||
.filter = accelerator_filter_low_dpi,
|
||||
.restart = accelerator_restart,
|
||||
.destroy = accelerator_destroy,
|
||||
.set_speed = accelerator_set_speed,
|
||||
};
|
||||
|
||||
struct motion_filter *
|
||||
|
|
@ -755,10 +755,10 @@ create_pointer_accelerator_filter_touchpad(int dpi)
|
|||
}
|
||||
|
||||
struct motion_filter_interface accelerator_interface_x230 = {
|
||||
accelerator_filter_x230,
|
||||
accelerator_restart,
|
||||
accelerator_destroy,
|
||||
accelerator_set_speed,
|
||||
.filter = accelerator_filter_x230,
|
||||
.restart = accelerator_restart,
|
||||
.destroy = accelerator_destroy,
|
||||
.set_speed = accelerator_set_speed,
|
||||
};
|
||||
|
||||
/* The Lenovo x230 has a bad touchpad. This accel method has been
|
||||
|
|
@ -792,10 +792,10 @@ create_pointer_accelerator_filter_lenovo_x230(int dpi)
|
|||
}
|
||||
|
||||
struct motion_filter_interface accelerator_interface_trackpoint = {
|
||||
accelerator_filter_trackpoint,
|
||||
accelerator_restart,
|
||||
accelerator_destroy,
|
||||
accelerator_set_speed,
|
||||
.filter = accelerator_filter_trackpoint,
|
||||
.restart = accelerator_restart,
|
||||
.destroy = accelerator_destroy,
|
||||
.set_speed = accelerator_set_speed,
|
||||
};
|
||||
|
||||
struct motion_filter *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue