QAbstractPhysicalDevice#
QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices. More…
Inherited by: QMouseDevice, QKeyboardDevice
Synopsis#
Functions#
def
addAxisSetting(axisSetting)def
axisSettings()def
removeAxisSetting(axisSetting)
Virtual functions#
def
axisCount()def
axisIdentifier(name)def
axisNames()def
buttonCount()def
buttonIdentifier(name)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#
- class PySide6.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QAbstractPhysicalDevice instance with parent.
- PySide6.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.addAxisSetting(axisSetting)#
- Parameters:
axisSetting –
PySide6.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:
axisSetting –
PySide6.Qt3DInput.Qt3DInput.QAxisSetting
Remove the axisSetting axisSetting to this device.