Qt3DInput.QAbstractPhysicalDevice¶
QAbstractPhysicalDevice
is the base class used by Qt3d to interact with arbitrary input devices. More…
Inherited by: Qt3DInput.QKeyboardDevice, Qt3DInput.QMouseDevice
Synopsis¶
Functions¶
def
addAxisSetting
(axisSetting)def
axisSettings
()def
removeAxisSetting
(axisSetting)
Virtual functions¶
def
axisCount
()def
axisIdentifier
(name)def
axisNames
()def
buttonCount
()def
buttonIdentifier
(name)def
buttonNames
()
Detailed Description¶
-
class
PySide2.Qt3DInput.Qt3DInput.
QAbstractPhysicalDevice
([parent=None])¶ - param parent
QNode
Constructs a new
QAbstractPhysicalDevice
instance withparent
.
-
PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.
addAxisSetting
(axisSetting)¶ - Parameters
axisSetting –
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 – 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.
- Return type
int
Returns the number of buttons this device has.
- Parameters
name – unicode
- Return type
int
Returns the integer identifer of the button
name
or -1 if it does not exist on this device.
- Return type
list of strings
Returns a list of the names of device’s buttons.
-
PySide2.Qt3DInput.Qt3DInput.QAbstractPhysicalDevice.
removeAxisSetting
(axisSetting)¶ - Parameters
axisSetting –
QAxisSetting
Remove the axisSetting
axisSetting
to this device.
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.