Fix T54799: NDOF events not dispatched on windows.
Caused by commit rB785e8a636a29
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user