|
|
@ -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(); |
|
|
|