set mouse visible; smol refactor
GitOrigin-RevId: b6a557f79b782693897421fb6afdcebfbdf10c35
This commit is contained in:
parent
a33c4d90fd
commit
bb5aab6495
@ -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…
Reference in New Issue
Block a user