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_QABSTRACTAXISINPUT_H |
5 | #define QT3DINPUT_QABSTRACTAXISINPUT_H |
6 | |
7 | #include <Qt3DInput/qabstractphysicaldevice.h> |
8 | #include <Qt3DInput/qt3dinput_global.h> |
9 | #include <Qt3DCore/qnode.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | namespace Qt3DInput { |
14 | |
15 | class QAbstractPhysicalDevice; |
16 | class QAbstractAxisInputPrivate; |
17 | |
18 | class Q_3DINPUTSHARED_EXPORT QAbstractAxisInput : public Qt3DCore::QNode |
19 | { |
20 | Q_OBJECT |
21 | Q_PROPERTY(Qt3DInput::QAbstractPhysicalDevice *sourceDevice READ sourceDevice WRITE setSourceDevice NOTIFY sourceDeviceChanged) |
22 | |
23 | public: |
24 | ~QAbstractAxisInput(); |
25 | |
26 | QAbstractPhysicalDevice *sourceDevice() const; |
27 | |
28 | public Q_SLOTS: |
29 | void setSourceDevice(QAbstractPhysicalDevice *sourceDevice); |
30 | |
31 | Q_SIGNALS: |
32 | void sourceDeviceChanged(QAbstractPhysicalDevice *sourceDevice); |
33 | |
34 | protected: |
35 | QAbstractAxisInput(QAbstractAxisInputPrivate &dd, QNode *parent = nullptr); |
36 | |
37 | private: |
38 | Q_DECLARE_PRIVATE(QAbstractAxisInput) |
39 | }; |
40 | |
41 | } // Qt3DInput |
42 | |
43 | QT_END_NAMESPACE |
44 | |
45 | #endif // QQT3DINPUT_ABSTRACTAXISINPUT_H |
46 | |