QAbstractPhysicalDeviceis the base class used by Qt3d to interact with arbitrary input devices. 更多 …
继承者: Qt3DInput.QKeyboardDevice , Qt3DInput.QMouseDevice
def
addAxisSetting
(axisSetting)
def
axisSettings
()
def
removeAxisSetting
(axisSetting)
def
axisCount
()
def
axisIdentifier
(name)
def
axisNames
()
def
buttonCount
()
def
buttonIdentifier
(name)
def
buttonNames
()
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.
int
Returns the number of buttons this device has.
name – unicode
int
Returns the integer identifer of the button
name
or -1 if it does not exist on this device.
字符串列表
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.