From a0ea63f96be134608a310e19103a74ac0f7b1c4d Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Tue, 25 Feb 2020 09:35:41 -0500 Subject: [PATCH] make Input readonly GitOrigin-RevId: 1bb3c6bb6fad236b0b974a78b2d0c75474c9fa23 --- Shared/Input.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Shared/Input.cs b/Shared/Input.cs index 41bf02c..ad33188 100644 --- a/Shared/Input.cs +++ b/Shared/Input.cs @@ -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();