Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Control.IsMouseCaptured, CaptureMouse, and ReleaseMouseCapture APIs #2609

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

cwensley
Copy link
Member

This adds the ability to capture the mouse to a particular control/window until ReleaseMouseCapture is called. You can also tell if the mouse is captured during a mouse down/drag/mouse up operation with the IsMouseCaptured property.

New APIs:

class Control
{
  public bool IsMouseCaptured { get; }
  public bool CaptureMouse();
  public void ReleaseMouseCapture();
}

@cwensley cwensley added this to the 2.8.3 milestone Jan 18, 2024
@cwensley cwensley merged commit 443b56c into picoe:develop Jan 18, 2024
3 checks passed
@cwensley cwensley deleted the curtis/add-mouse-capture-apis branch January 18, 2024 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant