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_INPUT_QUICK_QUICK3DPHYSICALDEVICE_H
5#define QT3DINPUT_INPUT_QUICK_QUICK3DPHYSICALDEVICE_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#include <Qt3DInput/qaxissetting.h>
20#include <QtCore/QObject>
21#include <QtQml/QQmlListProperty>
22
23#include <Qt3DQuickInput/private/qt3dquickinput_global_p.h>
24
25QT_BEGIN_NAMESPACE
26
27namespace Qt3DInput {
28namespace Input {
29namespace Quick {
30
31class Q_3DQUICKINPUTSHARED_PRIVATE_EXPORT Quick3DPhysicalDevice : public QObject
32{
33 Q_OBJECT
34 Q_PROPERTY(QQmlListProperty<Qt3DInput::QAxisSetting> axisSettings READ axisSettings CONSTANT)
35public:
36 explicit Quick3DPhysicalDevice(QObject *parent = 0);
37
38 inline QAbstractPhysicalDevice *parentPhysicalDevice() const { return qobject_cast<QAbstractPhysicalDevice *>(object: parent()); }
39 QQmlListProperty<Qt3DInput::QAxisSetting> axisSettings();
40};
41
42} // namespace Quick
43} // namespace Input
44} // namespace Qt3DInput
45
46QT_END_NAMESPACE
47
48#endif // QT3DINPUT_INPUT_QUICK_QUICK3DPHYSICALDEVICE_H
49

source code of qt3d/src/quick3d/quick3dinput/items/quick3dphysicaldevice_p.h