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#

Functions#

Virtual functions#

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#

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

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QAbstractPhysicalDevice instance with parent.

PySide6.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.addAxisSetting(axisSetting)#
Parameters:

axisSettingPySide6.Qt3DInput.Qt3DInput.QAxisSetting

Add the axisSetting axisSetting to this device.

PySide6.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.axisCount()#
Return type:

int

Returns the number of axis this device has.

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

PySide6.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.axisNames()#
Return type:

list of strings

Returns a list of the names of device’s axis.

PySide6.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.axisSettings()#
Return type:

Returns the axisSettings associated with this device.

PySide6.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.buttonCount()#
Return type:

int

Returns the number of buttons this device has.

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

PySide6.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.buttonNames()#
Return type:

list of strings

Returns a list of the names of device’s buttons.

PySide6.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.removeAxisSetting(axisSetting)#
Parameters:

axisSettingPySide6.Qt3DInput.Qt3DInput.QAxisSetting

Remove the axisSetting axisSetting to this device.