Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qopenxrgamepadinput_p.h
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QOPENXRGAMEPADINPUT_H
5#define QOPENXRGAMEPADINPUT_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 purely as an
12// implementation detail. 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 <QObject>
19#include <QVector2D>
20#include <QtQml/qqml.h>
21
23
25{
27
28 QML_NAMED_ELEMENT(XrGamepadInput)
29 QML_UNCREATABLE("Created by XrView")
30
31public:
32 explicit QOpenXRGamepadInput(QObject *parent = nullptr);
33 void setInputValue(int id, const char *shortName, float value) { emit inputValueChange(id, shortName, value); }
34
36 void inputValueChange(int id, const char *shortName, float value);
37
38private:
39
40};
41
43
44#endif // QOPENXRGAMEPADINPUT_H
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
void inputValueChange(int id, const char *shortName, float value)
QOpenXRGamepadInput(QObject *parent=nullptr)
void setInputValue(int id, const char *shortName, float value)
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define QML_UNCREATABLE(REASON)
#define QML_NAMED_ELEMENT(NAME)
#define Q_OBJECT
#define Q_SIGNALS
#define emit