linuxfb: Use libinput by default when available
Can be overridden by setting QT_QPA_FB_NO_LIBINPUT. On systems where libinput is present it is usually a better choice to rely on it instead of evdev*. Change-Id: I8532c923bacd605434cfca1c7e314cb95d41b372 Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
This commit is contained in:
parent
95aad72e84
commit
df80753134
@ -46,6 +46,10 @@
|
||||
#include <QtGui/private/qguiapplication_p.h>
|
||||
#include <qpa/qplatforminputcontextfactory_p.h>
|
||||
|
||||
#ifndef QT_NO_LIBINPUT
|
||||
#include <QtPlatformSupport/private/qlibinputhandler_p.h>
|
||||
#endif
|
||||
|
||||
#if !defined(QT_NO_EVDEV) && (!defined(Q_OS_ANDROID) || defined(Q_OS_ANDROID_NO_SDK))
|
||||
#include <QtPlatformSupport/private/qevdevmousemanager_p.h>
|
||||
#include <QtPlatformSupport/private/qevdevkeyboardmanager_p.h>
|
||||
@ -130,6 +134,13 @@ QPlatformServices *QLinuxFbIntegration::services() const
|
||||
|
||||
void QLinuxFbIntegration::createInputHandlers()
|
||||
{
|
||||
#ifndef QT_NO_LIBINPUT
|
||||
if (!qEnvironmentVariableIntValue("QT_QPA_FB_NO_LIBINPUT")) {
|
||||
new QLibInputHandler(QLatin1String("libinput"), QString());
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !defined(QT_NO_EVDEV) && (!defined(Q_OS_ANDROID) || defined(Q_OS_ANDROID_NO_SDK))
|
||||
new QEvdevKeyboardManager(QLatin1String("EvdevKeyboard"), QString(), this);
|
||||
new QEvdevMouseManager(QLatin1String("EvdevMouse"), QString(), this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user