QAbstractPhysicalDevice Class | Qt 3D 5.15.19 (original) (raw)

class Qt3DInput::QAbstractPhysicalDevice

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

This class was introduced in Qt 5.6.

Public Functions

Detailed Description

Member Function Documentation

QAbstractPhysicalDevice::QAbstractPhysicalDevice(Qt3DCore::QNode *parent = nullptr)

Constructs a new QAbstractPhysicalDevice instance with parent.

void QAbstractPhysicalDevice::addAxisSetting(Qt3DInput::QAxisSetting *axisSetting)

Add the axisSetting axisSetting to this device.

[virtual] int QAbstractPhysicalDevice::axisCount() const

Returns the number of axis this device has.

[virtual] int QAbstractPhysicalDevice::axisIdentifier(const QString &name) const

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

[virtual] QStringList QAbstractPhysicalDevice::axisNames() const

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

QVector<Qt3DInput::QAxisSetting *> QAbstractPhysicalDevice::axisSettings() const

Returns the axisSettings associated with this device.

[virtual] int QAbstractPhysicalDevice::buttonCount() const

Returns the number of buttons this device has.

[virtual] int QAbstractPhysicalDevice::buttonIdentifier(const QString &name) const

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

[virtual] QStringList QAbstractPhysicalDevice::buttonNames() const

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

void QAbstractPhysicalDevice::removeAxisSetting(Qt3DInput::QAxisSetting *axisSetting)

Remove the axisSetting axisSetting to this device.

© 2025 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.