内容表

上一话题

Qt3DInput.QAbstractAxisInput

下一话题

Qt3DInput.QAction

Qt3DInput.QAbstractPhysicalDevice

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

Inheritance diagram of PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice

继承者: Qt3DInput.QKeyboardDevice , Qt3DInput.QMouseDevice

概要

函数

详细描述

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

QNode

构造新 QAbstractPhysicalDevice 实例与 parent .

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice. addAxisSetting ( axisSetting )
参数

axisSetting QAxisSetting

Add the axisSetting axisSetting to this device.

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice. axisCount ( )
返回类型

int

Returns the number of axis this device has.

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice. axisIdentifier ( name )
参数

name – unicode

返回类型

int

Returns the integer identifer of the axis name or -1 if it does not exist on this device.

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice. axisNames ( )
返回类型

字符串列表

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

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice. axisSettings ( )
返回类型

Returns the associated with this device.

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice. buttonCount ( )
返回类型

int

Returns the number of buttons this device has.

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice. buttonIdentifier ( name )
参数

name – unicode

返回类型

int

Returns the integer identifer of the button name or -1 if it does not exist on this device.

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice. buttonNames ( )
返回类型

字符串列表

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

PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice. removeAxisSetting ( axisSetting )
参数

axisSetting QAxisSetting

Remove the axisSetting axisSetting to this device.