Improved comments
Former-commit-id: b387e7eb487de22cc06a9a526ad974fc0625879d
This commit is contained in:
parent
278963973a
commit
c55a222324
|
|
@ -722,6 +722,7 @@ bool NzWindowImpl::HandleMessage(HWND window, UINT message, WPARAM wParam, LPARA
|
||||||
{
|
{
|
||||||
m_mouseInside = true;
|
m_mouseInside = true;
|
||||||
|
|
||||||
|
// On créé un évènement pour être informé de la sortie de la fenêtre
|
||||||
TRACKMOUSEEVENT mouseEvent;
|
TRACKMOUSEEVENT mouseEvent;
|
||||||
mouseEvent.cbSize = sizeof(TRACKMOUSEEVENT);
|
mouseEvent.cbSize = sizeof(TRACKMOUSEEVENT);
|
||||||
mouseEvent.dwFlags = TME_LEAVE;
|
mouseEvent.dwFlags = TME_LEAVE;
|
||||||
|
|
@ -748,7 +749,9 @@ bool NzWindowImpl::HandleMessage(HWND window, UINT message, WPARAM wParam, LPARA
|
||||||
m_parent->PushEvent(event);
|
m_parent->PushEvent(event);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (m_mousePos.x == currentX && m_mousePos.y == currentY)
|
|
||||||
|
// Si la souris n'a pas bougé (Ou qu'on veut ignorer l'évènement)
|
||||||
|
if (m_mousePos.x == currentX && m_mousePos.y == currentY)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
NzEvent event;
|
NzEvent event;
|
||||||
|
|
@ -1113,7 +1116,7 @@ NzKeyboard::Key NzWindowImpl::ConvertVirtualKey(WPARAM key, LPARAM flags)
|
||||||
case VK_VOLUME_UP: return NzKeyboard::Volume_Up;
|
case VK_VOLUME_UP: return NzKeyboard::Volume_Up;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return NzKeyboard::Key(NzKeyboard::Undefined);
|
return NzKeyboard::Undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1124,8 +1127,7 @@ void NzWindowImpl::WindowThread(HWND* handle, DWORD styleEx, const wchar_t* titl
|
||||||
|
|
||||||
mutex->Lock();
|
mutex->Lock();
|
||||||
condition->Signal();
|
condition->Signal();
|
||||||
mutex->Unlock();
|
mutex->Unlock(); // mutex et condition sont considérés invalides à partir d'ici
|
||||||
// mutex et condition sont considérés invalides à partir d'ici
|
|
||||||
|
|
||||||
while (window->m_threadActive)
|
while (window->m_threadActive)
|
||||||
window->ProcessEvents(true);
|
window->ProcessEvents(true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue