Platform/Window: Fix SetCursor always changing cursor
This commit is contained in:
parent
e0d460eb95
commit
8c91d6a77d
|
|
@ -162,6 +162,7 @@ Nazara Engine:
|
|||
- Added RigidBody2D::ForEachArbiter
|
||||
- Added possibility to change the RigidBody2D velocity function called by the physics engine
|
||||
- Fixed MouseButtonEvent and MouseMoveEvent mouse absolute position being unsigned (now signed)
|
||||
- Fixed Window::SetCursor changing cursor even if window was in foreground on Windows
|
||||
|
||||
Nazara Development Kit:
|
||||
- Added ImageWidget (#139)
|
||||
|
|
|
|||
|
|
@ -289,6 +289,8 @@ namespace Nz
|
|||
{
|
||||
m_cursor = cursor.m_impl->GetCursor();
|
||||
|
||||
// Applies cursor only if we have focus
|
||||
if (GetForegroundWindow() == m_handle)
|
||||
::SetCursor(m_cursor);
|
||||
}
|
||||
|
||||
|
|
@ -653,7 +655,7 @@ namespace Nz
|
|||
{
|
||||
m_mouseInside = true;
|
||||
|
||||
// On créé un évènement pour être informé de la sortie de la fenêtre
|
||||
// Track mouse event to be notified when mouse leaves window
|
||||
TRACKMOUSEEVENT mouseEvent;
|
||||
mouseEvent.cbSize = sizeof(TRACKMOUSEEVENT);
|
||||
mouseEvent.dwFlags = TME_LEAVE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue