Disable the eglfs input handlers by Environment variable
Added a Enironment variable to make it possible to disable the automatic installation of EVDEV input handlers. This is needed if you want to use your own generic plugin instead, which also uses evdev Change-Id: I17d47008c10999bf918db62a22a3b6a38d7abb80 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
parent
cb2549740e
commit
639b4e85ae
@ -87,6 +87,8 @@ QEglFSIntegration::QEglFSIntegration()
|
||||
, mScreen(0)
|
||||
, mInputContext(0)
|
||||
{
|
||||
mDisableInputHandlers = qgetenv("QT_QPA_EGLFS_DISABLE_INPUT").toInt();
|
||||
|
||||
initResources();
|
||||
}
|
||||
|
||||
@ -176,6 +178,7 @@ void QEglFSIntegration::initialize()
|
||||
|
||||
mInputContext = QPlatformInputContextFactory::create();
|
||||
|
||||
if (!mDisableInputHandlers)
|
||||
createInputHandlers();
|
||||
}
|
||||
|
||||
|
@ -97,6 +97,7 @@ private:
|
||||
QScopedPointer<QPlatformServices> mServices;
|
||||
QEglFSScreen *mScreen;
|
||||
QPlatformInputContext *mInputContext;
|
||||
bool mDisableInputHandlers;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
Loading…
Reference in New Issue
Block a user