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 PySide2.Qt3DInput.QButtonAxisInput([parent=None])
param parent

PySide2.Qt3DCore.QNode

Constructs a new QButtonAxisInput instance with parent .

PySide2.Qt3DInput.QButtonAxisInput.acceleration()
Return type

float

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

PySide2.Qt3DInput.QButtonAxisInput.accelerationChanged(acceleration)
Parameters

acceleration – float

PySide2.Qt3DInput.QButtonAxisInput.buttons()
Return type

Specifies the buttons which control the axis

PySide2.Qt3DInput.QButtonAxisInput.buttonsChanged(buttons)
Parameters

buttons

PySide2.Qt3DInput.QButtonAxisInput.deceleration()
Return type

float

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

PySide2.Qt3DInput.QButtonAxisInput.decelerationChanged(deceleration)
Parameters

deceleration – float

PySide2.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.QButtonAxisInput.scaleChanged(scale)
Parameters

scale – float

PySide2.Qt3DInput.QButtonAxisInput.setAcceleration(acceleration)
Parameters

acceleration – float

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

PySide2.Qt3DInput.QButtonAxisInput.setButtons(buttons)
Parameters

buttons

Specifies the buttons which control the axis

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