Qt3DInput.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: Qt3DInput.QKeyboardDevice, Qt3DInput.QMouseDevice

Synopsis

Functions

Virtual functions

Detailed Description

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

QNode

Constructs a new QAbstractPhysicalDevice instance with parent .

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

axisSettingQAxisSetting

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 – unicode

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 – unicode

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

axisSettingQAxisSetting

Remove the axisSetting axisSetting to this device.