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 QT3DINPUT_QANALOGAXISINPUT_H |
5 | #define QT3DINPUT_QANALOGAXISINPUT_H |
6 | |
7 | #include <Qt3DInput/qt3dinput_global.h> |
8 | #include <Qt3DInput/QAbstractAxisInput> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace Qt3DInput { |
13 | |
14 | class QAnalogAxisInputPrivate; |
15 | |
16 | class Q_3DINPUTSHARED_EXPORT QAnalogAxisInput : public QAbstractAxisInput |
17 | { |
18 | Q_OBJECT |
19 | Q_PROPERTY(int axis READ axis WRITE setAxis NOTIFY axisChanged) |
20 | |
21 | public: |
22 | explicit QAnalogAxisInput(Qt3DCore::QNode *parent = nullptr); |
23 | ~QAnalogAxisInput(); |
24 | |
25 | int axis() const; |
26 | |
27 | public Q_SLOTS: |
28 | void setAxis(int axis); |
29 | |
30 | Q_SIGNALS: |
31 | void axisChanged(int axis); |
32 | |
33 | private: |
34 | Q_DECLARE_PRIVATE(QAnalogAxisInput) |
35 | }; |
36 | |
37 | } // Qt3DInput |
38 | |
39 | QT_END_NAMESPACE |
40 | |
41 | #endif // QT3DINPUT_QANALOGAXISINPUT_H |
42 | |