make Input readonly

GitOrigin-RevId: 1bb3c6bb6fad236b0b974a78b2d0c75474c9fa23
This commit is contained in:
Colin McMillen 2020-02-25 09:35:41 -05:00
parent 4e4c2cccb3
commit a0ea63f96b

View File

@ -2,16 +2,16 @@ using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Input;
namespace SemiColinGames { namespace SemiColinGames {
struct Input { readonly struct Input {
public Vector2 Motion; public readonly Vector2 Motion;
public bool Jump; public readonly bool Jump;
public bool Attack; public readonly bool Attack;
public bool Pause; public readonly bool Pause;
public bool Debug; public readonly bool Debug;
public bool Exit; public readonly bool Exit;
public bool Restart; public readonly bool Restart;
public bool FullScreen; public readonly bool FullScreen;
public Input(GamePadState gamePad, KeyboardState keyboard) { public Input(GamePadState gamePad, KeyboardState keyboard) {
Motion = new Vector2(); Motion = new Vector2();