- class 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#
Methods#
def
__init__()
def
acceleration()
def
buttons()
def
deceleration()
def
scale()
Slots#
def
setButtons()
def
setScale()
Signals#
def
buttonsChanged()
def
scaleChanged()
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#
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property accelerationᅟ: float#
Specifies the rate at which the axis value changes when a button is held
- Access functions:
- property buttonsᅟ: list of int#
Specifies the buttons which control the axis
- Access functions:
- property decelerationᅟ: float#
Specifies the rate at which the axis value returns to normal when a button is released
- Access functions:
- property scaleᅟ: float#
Specifies how the axis output value is scaled. No scaling is applied by default so it defaults to 1.
- Access functions:
Signal
scaleChanged()
- __init__([parent=None])#
- Parameters:
parent –
QNode
Constructs a new
QButtonAxisInput
instance withparent
.- acceleration()#
- Return type:
float
See also
setAcceleration()
Getter of property
accelerationᅟ
.- accelerationChanged(acceleration)#
- Parameters:
acceleration – float
Notification signal of property
accelerationᅟ
.- buttons()#
- Return type:
.list of int
See also
setButtons()
Getter of property
buttonsᅟ
.- buttonsChanged(buttons)#
- Parameters:
buttons – .list of int
Notification signal of property
buttonsᅟ
.- deceleration()#
- Return type:
float
See also
setDeceleration()
Getter of property
decelerationᅟ
.- decelerationChanged(deceleration)#
- Parameters:
deceleration – float
Notification signal of property
decelerationᅟ
.- scale()#
- Return type:
float
See also
setScale()
Getter of property
scaleᅟ
.- scaleChanged(scale)#
- Parameters:
scale – float
Notification signal of property
scaleᅟ
.- setAcceleration(acceleration)#
- Parameters:
acceleration – float
See also
acceleration()
Setter of property
accelerationᅟ
.- setButtons(buttons)#
- Parameters:
buttons – .list of int
See also
buttons()
Setter of property
buttonsᅟ
.- setDeceleration(deceleration)#
- Parameters:
deceleration – float
See also
deceleration()
Setter of property
decelerationᅟ
.- setScale(scale)#
- Parameters:
scale – float
See also
scale()
Setter of property
scaleᅟ
.