QAbstractPhysicalDevice

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

Inheritance diagram of PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice

Inherited by: QKeyboardDevice, QMouseDevice

Synopsis

Functions

Virtual functions

Detailed Description

class PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice([parent=None])

Constructs a new QAbstractPhysicalDevice instance with parent .

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.addAxisSetting(axisSetting)
Parameters:

axisSettingPySide2.Qt3DInput.Qt3DInput.QAxisSetting

Add the axisSetting axisSetting to this device.

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.axisCount()
Return type:

int

Returns the number of axis this device has.

PySide2.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.

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.axisNames()
Return type:

list of strings

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

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.axisSettings()
Return type:

Returns the associated with this device.

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.buttonCount()
Return type:

int

Returns the number of buttons this device has.

PySide2.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.

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.buttonNames()
Return type:

list of strings

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

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.removeAxisSetting(axisSetting)
Parameters:

axisSettingPySide2.Qt3DInput.Qt3DInput.QAxisSetting

Remove the axisSetting axisSetting to this device.