Browse Source

set mouse visible; smol refactor

GitOrigin-RevId: b6a557f79b
master
Colin McMillen 4 years ago
parent
commit
bb5aab6495
  1. 4
      Jumpy.Shared/JumpyGame.cs

4
Jumpy.Shared/JumpyGame.cs

@ -15,6 +15,7 @@ namespace Jumpy {
public JumpyGame() {
graphics = new GraphicsDeviceManager(this);
IsMouseVisible = true;
Content.RootDirectory = "Content";
}
@ -22,6 +23,7 @@ namespace Jumpy {
protected override void Initialize() {
window = (IWindow) Services.GetService(typeof(IWindow));
window.SetFullScreen(fullScreen, this, graphics);
base.Initialize();
}
@ -42,8 +44,8 @@ namespace Jumpy {
List<Keys> keysDown = keyboardInput.NewKeysDown();
if (keysDown.Contains(Keys.F12)) {
window.SetFullScreen(!fullScreen, this, graphics);
fullScreen = !fullScreen;
window.SetFullScreen(fullScreen, this, graphics);
}
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed ||

Loading…
Cancel
Save