QAbstractPhysicalDevice Class

( Qt3DInput::QAbstractPhysicalDevice )

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

头: #include <QAbstractPhysicalDevice>
qmake: QT += 3dinput
Since: Qt 5.6
实例化: AbstractPhysicalDevice
继承: Qt3DCore::QNode
继承者:

Qt3DInput::QKeyboardDevice and Qt3DInput::QMouseDevice

公共函数

QAbstractPhysicalDevice (Qt3DCore::QNode * parent = nullptr)
void addAxisSetting (QAxisSetting * axisSetting )
virtual int axisCount () const
virtual int axisIdentifier (const QString & name ) const
virtual QStringList axisNames () const
QVector<QAxisSetting *> axisSettings () const
virtual int buttonCount () const
virtual int buttonIdentifier (const QString & name ) const
virtual QStringList buttonNames () const
void removeAxisSetting (QAxisSetting * axisSetting )

保护函数

QAbstractPhysicalDevice (QAbstractPhysicalDevicePrivate & dd , Qt3DCore::QNode * parent = nullptr)

额外继承成员

详细描述

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

成员函数文档编制

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

构造新的 QAbstractPhysicalDevice 实例与 parent .

[protected] QAbstractPhysicalDevice:: QAbstractPhysicalDevice ( QAbstractPhysicalDevicePrivate & dd , Qt3DCore::QNode * parent = nullptr)

Copy constructor.

void QAbstractPhysicalDevice:: addAxisSetting ( 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 < 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 ( QAxisSetting * axisSetting )

Remove the axisSetting axisSetting to this device.