QAbstractPhysicalDevice¶
- PyQt5.Qt3DInput.QAbstractPhysicalDevice
Inherits from QNode.
Inherited by QKeyboardDevice, QMouseDevice.
Description¶
QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices.
Methods¶
- __init__(parent: QNode = None)
Constructs a new QAbstractPhysicalDevice instance with parent.
- addAxisSetting(QAxisSetting)
Add the axisSetting axisSetting to this device.
- axisCount() → int
Returns the number of axis this device has.
- axisIdentifier(str) → int
Returns the integer identifer of the axis name or -1 if it does not exist on this device.
- axisNames() → List[str]
Returns a list of the names of device’s axis.
- axisSettings() → List[QAxisSetting]
Returns the associated with this device.
- buttonCount() → int
Returns the number of buttons this device has.
- buttonIdentifier(str) → int
Returns the integer identifer of the button name or -1 if it does not exist on this device.
- buttonNames() → List[str]
Returns a list of the names of device’s buttons.
- removeAxisSetting(QAxisSetting)
Remove the axisSetting axisSetting to this device.