QKeyboardDevice is in charge of dispatching keyboard events to attached QQKeyboardHandler objects. 更多...
头: | #include <QKeyboardDevice> |
qmake: | QT += 3dinput |
Since: | Qt 5.5 |
实例化: | KeyboardDevice |
继承: | Qt3DInput::QAbstractPhysicalDevice |
该类在 Qt 5.5 引入。
QKeyboardDevice (Qt3DCore::QNode * parent = nullptr) | |
Qt3DInput::QKeyboardHandler * | activeInput () const |
virtual int | axisCount () const override |
virtual int | axisIdentifier (const QString & name ) const override |
virtual QStringList | axisNames () const override |
virtual int | buttonCount () const override |
virtual int | buttonIdentifier (const QString & name ) const override |
virtual QStringList | buttonNames () const override |
void | activeInputChanged (Qt3DInput::QKeyboardHandler * activeInput ) |
Holds the active QKeyboardHandler 为设备。
访问函数:
Qt3DInput::QKeyboardHandler * | activeInput () const |
通知程序信号:
void | activeInputChanged (Qt3DInput::QKeyboardHandler * activeInput ) |
Constructs a new QKeyboardDevice instance with parent .
[override virtual]
int
QKeyboardDevice::
axisCount
() const
重实现: QAbstractPhysicalDevice::axisCount () const.
Returns the axis count.
注意: Currently always returns zero.
[override virtual]
int
QKeyboardDevice::
axisIdentifier
(const
QString
&
name
) const
重实现: QAbstractPhysicalDevice::axisIdentifier (const QString &name) const.
Returns the axisIdentifier matching the name .
[override virtual]
QStringList
QKeyboardDevice::
axisNames
() const
重实现: QAbstractPhysicalDevice::axisNames () const.
Returns the axis names.
注意: Currently always returns empty QStringList .
[override virtual]
int
QKeyboardDevice::
buttonCount
() const
重实现: QAbstractPhysicalDevice::buttonCount () const.
Returns the button count.
[override virtual]
int
QKeyboardDevice::
buttonIdentifier
(const
QString
&
name
) const
重实现: QAbstractPhysicalDevice::buttonIdentifier (const QString &name) const.
Returns the buttonIdentifier matching the name .
[override virtual]
QStringList
QKeyboardDevice::
buttonNames
() const
重实现: QAbstractPhysicalDevice::buttonNames () const.
Returns the button names.