Fix T54799: NDOF events not dispatched on windows.

Caused by commit rB785e8a636a29
This commit is contained in:
2018-08-07 11:41:55 -03:00
parent 4c712fd17e
commit 030297209f
2 changed files with 5 additions and 1 deletions

View File

@@ -219,10 +219,12 @@ bool GHOST_System::getFullScreen(void)
void GHOST_System::dispatchEvents()
{
#ifdef WITH_INPUT_NDOF
#ifndef WIN32
// NDOF Motion event is sent only once per dispatch, so do it now:
if (m_ndofManager) {
m_ndofManager->sendMotionEvent();
}
#endif
#endif
if (m_eventManager) {

View File

@@ -1110,8 +1110,10 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
break;
#ifdef WITH_INPUT_NDOF
case RIM_TYPEHID:
if (system->processNDOF(raw))
if (system->processNDOF(raw)) {
system->m_ndofManager->sendMotionEvent();
eventHandled = true;
}
break;
#endif
}