forked from bartvdbraak/blender
Fix T57305: NDOF frozen w/ lock view to camera
This effectively reverts 030297209f2508a and 785e8a636a2939, which caused this issue.
This commit is contained in:
parent
52d31b4894
commit
3afc77655e
@ -211,12 +211,10 @@ 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) {
|
||||
|
@ -435,14 +435,8 @@ bool GHOST_SystemWin32::processEvents(bool waitForEvent)
|
||||
// Needed for MapVirtualKey or if we ever need to get chars from wm_ime_char or similar.
|
||||
::TranslateMessage(&msg);
|
||||
::DispatchMessageW(&msg);
|
||||
hasEventHandled = true;
|
||||
}
|
||||
|
||||
if (hasEventHandled == false) {
|
||||
// Check if we have events handled by the system
|
||||
// (for example the `GHOST_kEventWindowClose`).
|
||||
hasEventHandled = m_eventManager->getNumEvents() != 0;
|
||||
}
|
||||
|
||||
} while (waitForEvent && !hasEventHandled);
|
||||
|
||||
return hasEventHandled;
|
||||
@ -1105,7 +1099,6 @@ LRESULT WINAPI GHOST_SystemWin32::s_wndProc(HWND hwnd, UINT msg, WPARAM wParam,
|
||||
#ifdef WITH_INPUT_NDOF
|
||||
case RIM_TYPEHID:
|
||||
if (system->processNDOF(raw)) {
|
||||
system->m_ndofManager->sendMotionEvent();
|
||||
eventHandled = true;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user