make Input readonly
GitOrigin-RevId: 1bb3c6bb6fad236b0b974a78b2d0c75474c9fa23
This commit is contained in:
parent
4e4c2cccb3
commit
a0ea63f96b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user