_Fling_

I am trying to make my mouse visible, and I tried doing what it says to do in the Faq. However, when I try to do "Game.IsMouseVisible = true;" it gives me the error "An Object Reference is required for the nonstatic field, method, or property 'Microsoft.Xna.Framework.Game.IsMouseVisible.Get'.

What do I have to do to display the mouse



Re: XNA Framework Making the mouse visible

buster2001

Try put the

this.IsMouseVisible = true; inside the

protected override void Initialize()

{

this.IsMouseVisible = true;

}





Re: XNA Framework Making the mouse visible

_Fling_

Yes that works, thanks. Now, can you explain to me why Does "this" basically point to the game class or something



Re: XNA Framework Making the mouse visible

Jim Perry

"this" points to whatever object the line of code is in. In this case, it's the Game object.