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::QAbstractPhysicalDeviceProxy , Qt3DInput::QKeyboardDevice ,和 Qt3DInput::QMouseDevice |
QAbstractPhysicalDevice (Qt3DCore::QNode * parent = nullptr) | |
void | addAxisSetting (Qt3DInput::QAxisSetting * axisSetting ) |
virtual int | axisCount () const |
virtual int | axisIdentifier (const QString & name ) const |
virtual QStringList | axisNames () const |
QVector<Qt3DInput::QAxisSetting *> | axisSettings () const |
virtual int | buttonCount () const |
virtual int | buttonIdentifier (const QString & name ) const |
virtual QStringList | buttonNames () const |
void | removeAxisSetting (Qt3DInput::QAxisSetting * axisSetting ) |
const QMetaObject | staticMetaObject |
QAbstractPhysicalDevice (Qt3DInput::QAbstractPhysicalDevicePrivate & dd , Qt3DCore::QNode * parent = nullptr) |
QAbstractPhysicalDevice is the base class used by Qt3d to interact with arbitrary input devices.
构造新的 QAbstractPhysicalDevice 实例与 parent .
[protected]
QAbstractPhysicalDevice::
QAbstractPhysicalDevice
(
Qt3DInput::QAbstractPhysicalDevicePrivate
&
dd
,
Qt3DCore::QNode
*
parent
= nullptr)
Default constructs an instance of QAbstractPhysicalDevice.
Add the axisSetting axisSetting to this device.
[虚拟]
int
QAbstractPhysicalDevice::
axisCount
() const
Returns the number of axis this device has.
[虚拟]
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.
[虚拟]
QStringList
QAbstractPhysicalDevice::
axisNames
() const
Returns a list of the names of device's axis.
Returns the axisSettings associated with this device.
[虚拟]
int
QAbstractPhysicalDevice::
buttonCount
() const
Returns the number of buttons this device has.
[虚拟]
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.
[虚拟]
QStringList
QAbstractPhysicalDevice::
buttonNames
() const
Returns a list of the names of device's buttons.
Remove the axisSetting axisSetting to this device.