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#

Slots#

Signals#

Detailed Description#

class PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput([parent=None])#
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QButtonAxisInput instance with parent.

PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.acceleration()#
Return type

float

Specifies the rate at which the axis value changes when a button is held

PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.accelerationChanged(acceleration)#
Parameters

acceleration – float

PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.buttons()#
Return type

Specifies the buttons which control the axis

PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.buttonsChanged(buttons)#
Parameters

buttons

PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.deceleration()#
Return type

float

Specifies the rate at which the axis value returns to normal when a button is released

PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.decelerationChanged(deceleration)#
Parameters

deceleration – float

PySide6.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.

PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.scaleChanged(scale)#
Parameters

scale – float

PySide6.Qt3DInput.Qt3DInput.QButtonAxisInput.setAcceleration(acceleration)#
Parameters

acceleration – float

Specifies the rate at which the axis value changes when a button is held

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

buttons

Specifies the buttons which control the axis

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

deceleration – float

Specifies the rate at which the axis value returns to normal when a button is released

PySide6.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.