Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XNA - Cannot See Mouse in Game

Tags:

mouse

xna

I've recently started checking out XNA. All is going well and I've even got a working sample started. One thing that's been bugging me is that whenever I place my mouse over the game window it disappears. I don't know if this is the default behavior but I would like to change this so that I can see my mouse. Any and all advice is appreciated.

like image 402
Adam P Avatar asked Mar 06 '11 03:03

Adam P


1 Answers

Simply set IsMouseVisible to true in your main game class(preferably in your Initialize method or Game class constructor) :

IsMouseVisible = true;
like image 190
Jesse Emond Avatar answered Oct 13 '22 00:10

Jesse Emond