- class QAbstractPhysicalDevice#
QAbstractPhysicalDevice
is the base class used by Qt3d to interact with arbitrary input devices. More…Inherited by:
QMouseDevice
,QKeyboardDevice
Synopsis#
Methods#
def
__init__()
def
addAxisSetting()
def
axisSettings()
Virtual methods#
def
axisCount()
def
axisIdentifier()
def
axisNames()
def
buttonCount()
def
buttonNames()
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#
- __init__([parent=None])#
- Parameters:
parent –
QNode
Constructs a new
QAbstractPhysicalDevice
instance withparent
.- addAxisSetting(axisSetting)#
- Parameters:
axisSetting –
QAxisSetting
Add the axisSetting
axisSetting
to this device.- axisCount()#
- Return type:
int
Returns the number of axis this device has.
- axisIdentifier(name)#
- Parameters:
name – str
- Return type:
int
Returns the integer identifer of the axis
name
or -1 if it does not exist on this device.- axisNames()#
- Return type:
list of strings
Returns a list of the names of device’s axis.
- axisSettings()#
- Return type:
.list of Qt3DInput.QAxisSetting
Returns the axisSettings associated with this device.
- buttonCount()#
- Return type:
int
Returns the number of buttons this device has.
- buttonIdentifier(name)#
- Parameters:
name – str
- Return type:
int
Returns the integer identifer of the button
name
or -1 if it does not exist on this device.- buttonNames()#
- Return type:
list of strings
Returns a list of the names of device’s buttons.
- removeAxisSetting(axisSetting)#
- Parameters:
axisSetting –
QAxisSetting
Remove the axisSetting
axisSetting
to this device.