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

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