1// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef GENERICDEVICE_P_H
5#define GENERICDEVICE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <Qt3DInput/qabstractphysicaldevice.h>
19
20#include <Qt3DInput/private/qt3dinput_global_p.h>
21
22#include <QtCore/QVariant>
23
24QT_BEGIN_NAMESPACE
25
26namespace Qt3DInput {
27
28class Q_3DINPUTSHARED_PRIVATE_EXPORT QGenericInputDevice : public QAbstractPhysicalDevice
29{
30 Q_OBJECT
31 Q_PROPERTY(QVariantMap axesMap READ axesMap WRITE setAxesMap NOTIFY axesMapChanged)
32 Q_PROPERTY(QVariantMap buttonsMap READ buttonsMap WRITE setButtonsMap NOTIFY buttonsMapChanged)
33public:
34 QGenericInputDevice(Qt3DCore::QNode *parent = nullptr);
35
36 QVariantMap axesMap() const;
37 void setAxesMap(const QVariantMap &axesMap);
38 QVariantMap buttonsMap() const;
39 void setButtonsMap(const QVariantMap &buttonsMap);
40
41Q_SIGNALS:
42 void axesMapChanged();
43 void buttonsMapChanged();
44};
45
46} // Qt3DInput
47
48QT_END_NAMESPACE
49
50#endif // GENERICDEVICE_P_H
51

source code of qt3d/src/input/frontend/qgenericinputdevice_p.h