内容表

上一话题

Qt3DInput.QButtonAxisInput

下一话题

Qt3DInput.QInputChord

Qt3DInput.QInputAspect

Responsible for creating physical devices and handling associated jobs. 更多

Inheritance diagram of PySide2.Qt3DInput.Qt3DInput.QInputAspect

详细描述

Handles mapping between front and backend nodes

QInputAspect is responsible for creating physical devices. It is also the object responsible establishing the jobs to run at a particular time from the current input setup.

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

QObject

构造新 QInputAspect with parent .

PySide2.Qt3DInput.Qt3DInput.QInputAspect. availablePhysicalDevices ( )
返回类型

字符串列表

Returns a list of all available physical devices.

PySide2.Qt3DInput.Qt3DInput.QInputAspect. createPhysicalDevice ( name )
参数

name – unicode

返回类型

QAbstractPhysicalDevice

Create a physical device identified by name using the input device integrations present returns a nullptr if it is not found.

注意

Caller is responsible for ownership.