Jump to content
  • 0

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


bloodwolf

Question

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 :)

 

Link to comment
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
×
×
  • Create New...