差分
ページの作成:「MonoGameでマウスカーソルの表示非表示の切り替えはGameクラスのIsMouseVisibleプロパティで設定する。 初期値はfalseで非表示になっ...」
MonoGameでマウスカーソルの表示非表示の切り替えはGameクラスのIsMouseVisibleプロパティで設定する。
初期値はfalseで非表示になっている。
<source>
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();
}
</source>
== 関連項目 ==
* [[MonoGame/クラスライブラリ/Microsoft.Xna.Framework.Input名前空間/Mouseクラス|Microsoft.Xna.Framework.Input名前空間/Mouseクラス]]
[[category: MonoGame]]
初期値はfalseで非表示になっている。
<source>
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();
}
</source>
== 関連項目 ==
* [[MonoGame/クラスライブラリ/Microsoft.Xna.Framework.Input名前空間/Mouseクラス|Microsoft.Xna.Framework.Input名前空間/Mouseクラス]]
[[category: MonoGame]]