Jump to content
  • 0

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


Question

Posted

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?

3 answers to this question

Recommended Posts

  • 0
Posted

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

 

  • 0
Posted
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.

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...