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