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:

axisSetting 鈥� PySide2.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鈥檚 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鈥檚 buttons.

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

axisSetting 鈥� PySide2.Qt3DInput.Qt3DInput.QAxisSetting

Remove the axisSetting axisSetting to this device.