diff --git a/src/platform/guiwin.cpp b/src/platform/guiwin.cpp index 745720a4..d8851958 100644 --- a/src/platform/guiwin.cpp +++ b/src/platform/guiwin.cpp @@ -734,6 +734,11 @@ public: event.type = SixDofEvent::Type::RELEASE; event.button = SixDofEvent::Button::FIT; } + } else { + return 0; + } + if(window->onSixDofEvent) { + window->onSixDofEvent(event); } return 0; }