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

Inheritance diagram of PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput

Synopsis#

Properties#

Functions#

Slots#

Signals#

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:

parentPySide6.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:
property PᅟySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.buttons#

Specifies the buttons which control the axis

Access functions:
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:
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:
PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.acceleration()#
Return type:

float

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

setButtons()

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

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

setScale()

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

acceleration()

Setter of property acceleration .

PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.setButtons(buttons)#
Parameters:

buttons

See also

buttons()

Setter of property buttons .

PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.setDeceleration(deceleration)#
Parameters:

deceleration – float

See also

deceleration()

Setter of property deceleration .

PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.setScale(scale)#
Parameters:

scale – float

See also

scale()

Setter of property scale .