QButtonAxisInput Class
class Qt3DInput::QButtonAxisInputボタンによって制御される軸入力 ジョイスティックのような従来のアナログ入力ではなく、ボタンによって軸値が制御されます。詳細...
ヘッダー | #include <Qt3DInput/QButtonAxisInput> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
qmake | QT += 3dinput |
QML で | ButtonAxisInput |
を継承しています: | Qt3DInput::QAbstractAxisInput |
ステータス | 非推奨 |
プロパティ
- acceleration : float
- buttons : QList<int>
- deceleration : float
- scale : float
パブリック機能
QButtonAxisInput(Qt3DCore::QNode *parent = nullptr) | |
float | acceleration() const |
QList<int> | buttons() const |
float | deceleration() const |
float | scale() const |
パブリックスロット
void | setAcceleration(float acceleration) |
void | setButtons(const QList<int> &buttons) |
void | setDeceleration(float deceleration) |
void | setScale(float scale) |
シグナル
void | accelerationChanged(float acceleration) |
void | buttonsChanged(const QList<int> &buttons) |
void | decelerationChanged(float deceleration) |
void | scaleChanged(float scale) |
プロパティの説明
acceleration : float
ボタンを押したときの軸値の変化率を指定する。
アクセス機能
float | acceleration() const |
void | setAcceleration(float acceleration) |
通知信号
void | accelerationChanged(float acceleration) |
buttons : QList<int>
軸を制御するボタンを指定する
アクセス機能
QList<int> | buttons() const |
void | setButtons(const QList<int> &buttons) |
通知信号
void | buttonsChanged(const QList<int> &buttons) |
deceleration : float
ボタンを離したときに軸の値が元に戻る速度を指定します。
アクセス機能:
float | deceleration() const |
void | setDeceleration(float deceleration) |
通知信号
void | decelerationChanged(float deceleration) |
scale : float
軸出力値のスケーリング方法を指定する。デフ ォル ト ではスケー リ ングは適用 さ れないので、 デフ ォル ト 値は 1 にな る。
アクセス関数:
float | scale() const |
void | setScale(float scale) |
通知シグナル:
void | scaleChanged(float scale) |
メンバ関数ドキュメント
[explicit]
QButtonAxisInput::QButtonAxisInput(Qt3DCore::QNode *parent = nullptr)
新しい QButtonAxisInput インスタンスをparent で構築します。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.