mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:24:24 +02:00
Allow events from VR keyboard to overlay UI
This commit is contained in:
parent
6d20b5a887
commit
7b625ab83b
1 changed files with 2 additions and 2 deletions
|
@ -585,8 +585,8 @@ void Keyboard::handleTriggerBegin(const QUuid& id, const PointerEvent& event) {
|
||||||
|
|
||||||
QKeyEvent* pressEvent = new QKeyEvent(QEvent::KeyPress, scanCode, Qt::NoModifier, keyString);
|
QKeyEvent* pressEvent = new QKeyEvent(QEvent::KeyPress, scanCode, Qt::NoModifier, keyString);
|
||||||
QKeyEvent* releaseEvent = new QKeyEvent(QEvent::KeyRelease, scanCode, Qt::NoModifier, keyString);
|
QKeyEvent* releaseEvent = new QKeyEvent(QEvent::KeyRelease, scanCode, Qt::NoModifier, keyString);
|
||||||
QCoreApplication::postEvent(QCoreApplication::instance(), pressEvent);
|
QCoreApplication::postEvent(qApp->getPrimaryWidget(), pressEvent);
|
||||||
QCoreApplication::postEvent(QCoreApplication::instance(), releaseEvent);
|
QCoreApplication::postEvent(qApp->getPrimaryWidget(), releaseEvent);
|
||||||
|
|
||||||
if (!getPreferMalletsOverLasers()) {
|
if (!getPreferMalletsOverLasers()) {
|
||||||
key.startTimer(KEY_PRESS_TIMEOUT_MS);
|
key.startTimer(KEY_PRESS_TIMEOUT_MS);
|
||||||
|
|
Loading…
Reference in a new issue