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_INPUT_AXISACCUMULATORJOB_H
5#define QT3DINPUT_INPUT_AXISACCUMULATORJOB_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/private/handle_types_p.h>
19#include <Qt3DCore/qaspectjob.h>
20#include <Qt3DCore/qnodeid.h>
21
22QT_BEGIN_NAMESPACE
23
24namespace Qt3DInput {
25namespace Input {
26
27class AxisAccumulatorManager;
28class AxisManager;
29class AxisAccumulatorJobPrivate;
30
31class Q_AUTOTEST_EXPORT AxisAccumulatorJob : public Qt3DCore::QAspectJob
32{
33public:
34 AxisAccumulatorJob(AxisAccumulatorManager *axisAccumulatormanager,
35 AxisManager *axisManager);
36
37 void setDeltaTime(float dt) { m_dt = dt; }
38
39 void run() override;
40
41private:
42 Q_DECLARE_PRIVATE(AxisAccumulatorJob)
43
44 AxisAccumulatorManager *m_axisAccumulatorManager;
45 AxisManager *m_axisManager;
46 float m_dt;
47};
48
49typedef QSharedPointer<AxisAccumulatorJob> AxisAccumulatorJobPtr;
50
51} // namespace Input
52} // namespace Qt3DInput
53
54QT_END_NAMESPACE
55
56#endif // QT3DINPUT_INPUT_AXISACCUMULATORJOB_H
57

source code of qt3d/src/input/backend/axisaccumulatorjob_p.h