MonoGameでマウスカーソルを表示する
MonoGameでマウスカーソルの表示非表示の切り替えはGameクラスのIsMouseVisibleプロパティで設定する。 初期値はfalseで非表示になっている。
public class Game1 : Game
{
GraphicsDeviceManager graphics;
SpriteBatch spriteBatch;
public Game1()
{
graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
}
protected override void Initialize()
{
this.IsMouseVisible = true;
base.Initialize();
}
}