Table of Contents
- QButtonAxisInput
- Synopsis
- Detailed Description
PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput
PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.acceleration()
PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.accelerationChanged()
PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.buttons()
PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.buttonsChanged()
PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.deceleration()
PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.decelerationChanged()
PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.scale()
PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.scaleChanged()
PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.setAcceleration()
PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.setButtons()
PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.setDeceleration()
PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.setScale()
Previous topic
Next topic
Quick search
QButtonAxisInput¶
An axis input controlled by buttons The axis value is controlled by buttons rather than a traditional analog input such as a joystick. More…
Synopsis¶
Functions¶
def
acceleration
()def
buttons
()def
deceleration
()def
scale
()
Slots¶
def
setAcceleration
(acceleration)def
setButtons
(buttons)def
setDeceleration
(deceleration)def
setScale
(scale)
Signals¶
def
accelerationChanged
(acceleration)def
buttonsChanged
(buttons)def
decelerationChanged
(deceleration)def
scaleChanged
(scale)
Detailed Description¶
- class PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput([parent=None])¶
- param parent:
Constructs a new
QButtonAxisInput
instance withparent
.
- PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.acceleration()¶
- Return type:
float
Specifies the rate at which the axis value changes when a button is held
- PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.accelerationChanged(acceleration)¶
- Parameters:
acceleration – float
- PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.buttons()¶
- Return type:
Specifies the buttons which control the axis
- PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.buttonsChanged(buttons)¶
- Parameters:
buttons –
- PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.deceleration()¶
- Return type:
float
Specifies the rate at which the axis value returns to normal when a button is released
- PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.decelerationChanged(deceleration)¶
- Parameters:
deceleration – float
- PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.scale()¶
- Return type:
float
Specifies how the axis output value is scaled. No scaling is applied by default so it defaults to 1.
- PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.scaleChanged(scale)¶
- Parameters:
scale – float
- PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.setAcceleration(acceleration)¶
- Parameters:
acceleration – float
Specifies the rate at which the axis value changes when a button is held
- PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.setButtons(buttons)¶
- Parameters:
buttons –
Specifies the buttons which control the axis
- PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.setDeceleration(deceleration)¶
- Parameters:
deceleration – float
Specifies the rate at which the axis value returns to normal when a button is released
- PySide2.Qt3DInput.Qt3DInput.QButtonAxisInput.setScale(scale)¶
- Parameters:
scale – float
Specifies how the axis output value is scaled. No scaling is applied by default so it defaults to 1.
© 2022 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.