mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-04-18 14:20:45 +02:00
plugin/wheel: Use libinput_device_is_virtual()
Use this function instead of evdev_device_is_virtual(). Signed-off-by: José Expósito <jose.exposito89@gmail.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1313>
This commit is contained in:
parent
60bcbb6c88
commit
a0a6ff2777
1 changed files with 2 additions and 2 deletions
|
|
@ -35,6 +35,7 @@
|
|||
#include "libinput-log.h"
|
||||
#include "libinput-plugin-mouse-wheel.h"
|
||||
#include "libinput-plugin.h"
|
||||
#include "libinput-private.h"
|
||||
#include "libinput-util.h"
|
||||
|
||||
#define ACC_V120_TRIGGER_THRESHOLD 30 /* 1/4 of a wheel detent */
|
||||
|
|
@ -459,8 +460,7 @@ wheel_plugin_device_create(struct libinput_plugin *libinput_plugin,
|
|||
struct plugin_data *plugin,
|
||||
struct libinput_device *device)
|
||||
{
|
||||
struct evdev_device *evdev = evdev_device(device);
|
||||
if (evdev_device_is_virtual(evdev))
|
||||
if (libinput_device_is_virtual(device))
|
||||
return NULL;
|
||||
|
||||
struct plugin_device *pd = zalloc(sizeof(*pd));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue