QButtonAxisInput Class
(Qt3DInput::QButtonAxisInput)An axis input controlled by buttons The axis value is controlled by buttons rather than a traditional analog input such as a joystick. 更多...
头文件: | #include <Qt3DInput/QButtonAxisInput> |
qmake: | QT += 3dinput |
开始支持版本: | Qt 5.7 |
Instantiated By: | ButtonAxisInput |
基类: | Qt3DInput::QAbstractAxisInput |
属性
- acceleration : float
- buttons : QVector<int>
- deceleration : float
- scale : float
- 1 个属性继承自 Qt3DInput::QAbstractAxisInput
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
公有函数
QButtonAxisInput(Qt3DCore::QNode *parent = nullptr) | |
float | acceleration() const |
QVector<int> | buttons() const |
float | deceleration() const |
float | scale() const |
- 1 个公有函数继承自 Qt3DInput::QAbstractAxisInput
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
公有槽函数
void | setAcceleration(float acceleration) |
void | setButtons(const QVector<int> &buttons) |
void | setDeceleration(float deceleration) |
void | setScale(float scale) |
- 1 个公有槽函数继承自 Qt3DInput::QAbstractAxisInput
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
信号
void | accelerationChanged(float acceleration) |
void | buttonsChanged(const QVector<int> &buttons) |
void | decelerationChanged(float deceleration) |
void | scaleChanged(float scale) |
- 1 个信号继承自 Qt3DInput::QAbstractAxisInput
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
其他继承的成员
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
An axis input controlled by buttons The axis value is controlled by buttons rather than a traditional analog input such as a joystick.
属性
acceleration : float
Specifies the rate at which the axis value changes when a button is held
访问函数:
float | acceleration() const |
void | setAcceleration(float acceleration) |
Notifier signal:
void | accelerationChanged(float acceleration) |
buttons : QVector<int>
Specifies the buttons which control the axis
访问函数:
QVector<int> | buttons() const |
void | setButtons(const QVector<int> &buttons) |
Notifier signal:
void | buttonsChanged(const QVector<int> &buttons) |
deceleration : float
Specifies the rate at which the axis value returns to normal when a button is released
访问函数:
float | deceleration() const |
void | setDeceleration(float deceleration) |
Notifier signal:
void | decelerationChanged(float deceleration) |
scale : float
Specifies how the axis output value is scaled. No scaling is applied by default so it defaults to 1.
访问函数:
float | scale() const |
void | setScale(float scale) |
Notifier signal:
void | scaleChanged(float scale) |
成员函数
QButtonAxisInput::QButtonAxisInput(Qt3DCore::QNode *parent = nullptr)
Constructs a new QButtonAxisInput instance with parent.