Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Get MouseState when cursor is outside of Client Window

$
0
0

@wuzzard wrote:

Is it possible to determine the state of the mouse when the mouse is not within the client window?

I tried playing with the Windows.Forms library, but got all kinds of warnings (something about Carbon porting) so I'm leery of that.

Failing a nice, easy, cross-platform "mono" approach, is there a way to do this natively on each platform from a Mono/MonoGame project?

I want to do this because when you resize the client window, the MouseState is not updating (buttons remain "released"). If there's an alternate mechanism by which I can determine the mouse button state regardless of where the mouse is, I can use that to determine when the resize has ended.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles