class QAbstractPhysicalDevice#

QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices. More

Inheritance diagram of PySide6.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice

Inherited by: QMouseDevice, QKeyboardDevice

Synopsis#

Methods#

Virtual methods#

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:

parentQNode

Constructs a new QAbstractPhysicalDevice instance with parent.

addAxisSetting(axisSetting)#
Parameters:

axisSettingQAxisSetting

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:

axisSettingQAxisSetting

Remove the axisSetting axisSetting to this device.