mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-07-07 03:59:52 +00:00
[c-host] dxgi: invisible cursors do not have position information
This commit is contained in:
parent
8745858bcf
commit
fea0a98b9e
@ -711,14 +711,18 @@ static CaptureResult dxgi_capture()
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
pointer.positionUpdate = true;
|
pointer.positionUpdate = true;
|
||||||
|
|
||||||
|
/* the pointer position is invalid if the pointer is not visible */
|
||||||
|
if (frameInfo.PointerPosition.Visible)
|
||||||
|
{
|
||||||
this->lastPointerX = frameInfo.PointerPosition.Position.x;
|
this->lastPointerX = frameInfo.PointerPosition.Position.x;
|
||||||
this->lastPointerY = frameInfo.PointerPosition.Position.y;
|
this->lastPointerY = frameInfo.PointerPosition.Position.y;
|
||||||
|
}
|
||||||
this->lastPointerVisible = frameInfo.PointerPosition.Visible;
|
this->lastPointerVisible = frameInfo.PointerPosition.Visible;
|
||||||
|
|
||||||
pointer.x = this->lastPointerX;
|
pointer.x = this->lastPointerX;
|
||||||
pointer.y = this->lastPointerY;
|
pointer.y = this->lastPointerY;
|
||||||
pointer.visible = this->lastPointerVisible;
|
pointer.visible = this->lastPointerVisible;
|
||||||
|
|
||||||
postPointer = true;
|
postPointer = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user