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#
Properties#
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)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
- class PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QButtonAxisInput
instance with parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.acceleration: float#
Specifies the rate at which the axis value changes when a button is held
- Access functions:
acceleration
()setAcceleration
(acceleration)Signal
accelerationChanged
(acceleration)
- property PᅟySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.buttons#
Specifies the buttons which control the axis
- Access functions:
buttons
()setButtons
(buttons)Signal
buttonsChanged
(buttons)
- property PᅟySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.deceleration: float#
Specifies the rate at which the axis value returns to normal when a button is released
- Access functions:
deceleration
()setDeceleration
(deceleration)Signal
decelerationChanged
(deceleration)
- property PᅟySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.scale: float#
Specifies how the axis output value is scaled. No scaling is applied by default so it defaults to 1.
- Access functions:
scale
()setScale
(scale)Signal
scaleChanged
(scale)
- PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.acceleration()#
- Return type:
float
See also
Getter of property acceleration
.
- PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.accelerationChanged(acceleration)#
- Parameters:
acceleration – float
Notification signal of property acceleration
.
- PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.buttons()#
- Return type:
See also
Getter of property buttons
.
- PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.buttonsChanged(buttons)#
- Parameters:
buttons –
Notification signal of property buttons
.
- PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.deceleration()#
- Return type:
float
See also
Getter of property deceleration
.
- PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.decelerationChanged(deceleration)#
- Parameters:
deceleration – float
Notification signal of property deceleration
.
- PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.scale()#
- Return type:
float
See also
Getter of property scale
.
- PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.scaleChanged(scale)#
- Parameters:
scale – float
Notification signal of property scale
.
- PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.setAcceleration(acceleration)#
- Parameters:
acceleration – float
See also
Setter of property acceleration
.
- PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.setButtons(buttons)#
- Parameters:
buttons –
See also
Setter of property buttons
.
- PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.setDeceleration(deceleration)#
- Parameters:
deceleration – float
See also
Setter of property deceleration
.
- PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.setScale(scale)#
- Parameters:
scale – float
See also
Setter of property scale
.