MonoGameでマウスカーソルを表示する
2017年11月22日 (水) 07:38時点における172.68.253.253 (トーク)による版
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();
}