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 QT3DEXTRAS_QFIRSTPERSONCAMERACONTROLLER_H
5#define QT3DEXTRAS_QFIRSTPERSONCAMERACONTROLLER_H
6
7#include <Qt3DExtras/qabstractcameracontroller.h>
8
9QT_BEGIN_NAMESPACE
10
11namespace Qt3DExtras {
12
13class Q_3DEXTRASSHARED_EXPORT QFirstPersonCameraController : public QAbstractCameraController
14{
15 Q_OBJECT
16
17public:
18 explicit QFirstPersonCameraController(Qt3DCore::QNode *parent = nullptr);
19 ~QFirstPersonCameraController();
20
21private:
22 void moveCamera(const QAbstractCameraController::InputState &state, float dt) override;
23};
24
25} // Qt3DExtras
26
27QT_END_NAMESPACE
28
29#endif // QT3DEXTRAS_QFIRSTPERSONCAMERACONTROLLER_H
30

source code of qt3d/src/extras/defaults/qfirstpersoncameracontroller.h