Initial support of SpaceMouse Plus XT

This commit is contained in:
wmayer
2018-09-15 14:53:48 +02:00
parent 70aa8e056b
commit 8070462118
4 changed files with 185 additions and 9 deletions

View File

@@ -166,8 +166,10 @@ void Gui::GUIApplicationNativeEventAware::initSpaceball(QMainWindow *window)
bool Gui::GUIApplicationNativeEventAware::processSpaceballEvent(QObject *object, QEvent *event)
{
if (!activeWindow())
if (!activeWindow()) {
qDebug("No active window\n");
return true;
}
QApplication::notify(object, event);
if (event->type() == Spaceball::MotionEvent::MotionEventType)