-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add input device config interface #404
base: master
Are you sure you want to change the base?
Conversation
@@ -51,6 +53,27 @@ class WInputDevice : public WWrapObject | |||
void setSeat(WSeat *seat); | |||
WSeat *seat() const; | |||
|
|||
libinput_device *libinput_device_handle(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
libinputDeviceHandle
@@ -51,6 +53,27 @@ class WInputDevice : public WWrapObject | |||
void setSeat(WSeat *seat); | |||
WSeat *seat() const; | |||
|
|||
libinput_device *libinput_device_handle(); | |||
|
|||
bool setSendEventsMode(uint32_t mode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can enum?
@@ -109,4 +390,99 @@ QInputDevice *WInputDevice::qtDevice() const | |||
return d->qtDevice; | |||
} | |||
|
|||
libinput_device *WInputDevice::libinput_device_handle() | |||
{ | |||
return QWLibinputBackend::getDeviceHandle(handle()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (QWLibinputBackend::isLibinputDevice)
|
||
bool WInputDevice::setSendEventsMode(uint32_t mode) | ||
{ | ||
return configSendEventsMode(libinput_device_handle(), mode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe libinput_device_handle()
is nullptr
@@ -7,6 +7,8 @@ | |||
#include <QObject> | |||
#include <qwglobal.h> | |||
|
|||
#include <libinput.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't include libinput.h
in public header file.
Issue: #384