blob: 86e2d0004660566f1fc18e99d1ce4cea9b1c25b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include "qinputdeviceintegrationfactory_p.h"
#include <QtCore/QCoreApplication>
#include <QtCore/QDir>
#include <Qt3DInput/private/qinputdeviceintegration_p.h>
#include <Qt3DInput/private/qinputdeviceplugin_p.h>
#include <QtCore/private/qfactoryloader_p.h>
QT_BEGIN_NAMESPACE
namespace Qt3DInput {
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, (QInputDevicePlugin_iid, QLatin1String("/3dinputdevices"), Qt::CaseInsensitive))
QStringList QInputDeviceIntegrationFactory::keys()
{
return loader->keyMap().values();
}
QInputDeviceIntegration *QInputDeviceIntegrationFactory::create(const QString &name, const QStringList &args)
{
return qLoadPlugin<QInputDeviceIntegration, QInputDevicePlugin>(loader(), name, args);
}
} // Qt3DInput
QT_END_NAMESPACE
|