mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-06 20:54:31 +00:00
Improves mouse capture behaviour.
This commit is contained in:
parent
c8917e677b
commit
9f0cde3d69
@ -281,6 +281,10 @@ static CVReturn DisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt
|
|||||||
_mouseIsCaptured = YES;
|
_mouseIsCaptured = YES;
|
||||||
[NSCursor hide];
|
[NSCursor hide];
|
||||||
CGAssociateMouseAndMouseCursorPosition(false);
|
CGAssociateMouseAndMouseCursorPosition(false);
|
||||||
|
|
||||||
|
// Don't report the first click to the delegate; treat that as merely
|
||||||
|
// an invitation to capture the cursor.
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
[self.responderDelegate mouseDown:event];
|
[self.responderDelegate mouseDown:event];
|
||||||
|
Loading…
Reference in New Issue
Block a user