1 | // Copyright (C) 2015 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 QT3DINPUT_QLOGICALDEVICE_H |
5 | #define QT3DINPUT_QLOGICALDEVICE_H |
6 | |
7 | #include <Qt3DInput/qt3dinput_global.h> |
8 | #include <Qt3DCore/qcomponent.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace Qt3DInput { |
13 | |
14 | class QLogicalDevicePrivate; |
15 | class QAction; |
16 | class QAxis; |
17 | |
18 | class Q_3DINPUTSHARED_EXPORT QLogicalDevice : public Qt3DCore::QComponent |
19 | { |
20 | Q_OBJECT |
21 | public: |
22 | explicit QLogicalDevice(Qt3DCore::QNode *parent = nullptr); |
23 | ~QLogicalDevice(); |
24 | |
25 | void addAction(QAction *action); |
26 | void removeAction(QAction *action); |
27 | QList<QAction *> actions() const; |
28 | |
29 | void addAxis(QAxis *axis); |
30 | void removeAxis(QAxis *axis); |
31 | QList<QAxis *> axes() const; |
32 | |
33 | private: |
34 | Q_DECLARE_PRIVATE(QLogicalDevice) |
35 | }; |
36 | |
37 | } // Qt3DInput |
38 | |
39 | QT_END_NAMESPACE |
40 | |
41 | #endif // QT3DINPUT_QLOGICALDEVICE_H |
42 |