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;
namespace SemiColinGames {
struct Input {
public Vector2 Motion;
public bool Jump;
public bool Attack;
readonly struct Input {
public readonly Vector2 Motion;
public readonly bool Jump;
public readonly bool Attack;
public bool Pause;
public bool Debug;
public bool Exit;
public bool Restart;
public bool FullScreen;
public readonly bool Pause;
public readonly bool Debug;
public readonly bool Exit;
public readonly bool Restart;
public readonly bool FullScreen;
public Input(GamePadState gamePad, KeyboardState keyboard) {
Motion = new Vector2();