Qt3DInput::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)
parent を使用して、新しい QButtonAxisInput インスタンスを作成します。
© 2026 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.