Jump to content
  • 0
Sign in to follow this  
bloodwolf

Help my cursor is invisible when i hover back on the game window

Question

On borderless window when we leave and focus an element outside the game window and put back the mouse cursor hover the game window the mouse cursor is invisible :S

Do you guys know how to fix that?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Well I found my answer... If anyone had the same problem...

 

override OnDeactivated in IntersectGame

 

protected override void OnDeactivated(object sender, EventArgs args)
{
         //Make sure that the default cursor is visible when hovering back on the game window
         IsMouseVisible = true;
         base.OnDeactivated(sender, args);

}

 

And make sure to override OnActivated to set your IsMouseVisible to false to mask the default window cursor again :)

 

Share this post


Link to post
Share on other sites
  • 0
6 hours ago, bloodwolf said:

On borderless window

 

Uh, I don't think that mode even exists by default does it?

Just fullscreen and windowed.

 

I take it you changed that yourself as I don't think we support that by default.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...