From 361a02c67f918fd7d5f8aacce1ea332da1f7ad3c Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Fri, 10 Jan 2020 16:58:35 -0500 Subject: [PATCH] rm KeyboardInput GitOrigin-RevId: 1725d577c5be04488a6723b65c0c93fa25d12ab5 --- Shared/KeyboardInput.cs | 24 ------------------------ Shared/Shared.projitems | 3 +-- Shared/Shared.shproj | 3 +-- 3 files changed, 2 insertions(+), 28 deletions(-) delete mode 100644 Shared/KeyboardInput.cs diff --git a/Shared/KeyboardInput.cs b/Shared/KeyboardInput.cs deleted file mode 100644 index 0dd8610..0000000 --- a/Shared/KeyboardInput.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Microsoft.Xna.Framework.Input; -using System.Collections.Generic; - -namespace SemiColinGames { - public class KeyboardInput { - private KeyboardState oldState = Keyboard.GetState(); - private List newKeysDown = new List(); - - public void Update() { - KeyboardState newState = Keyboard.GetState(); - newKeysDown.Clear(); - foreach (Keys k in newState.GetPressedKeys()) { - if (!oldState.IsKeyDown(k)) { - newKeysDown.Add(k); - } - } - oldState = newState; - } - - public List NewKeysDown() { - return newKeysDown; - } - } -} \ No newline at end of file diff --git a/Shared/Shared.projitems b/Shared/Shared.projitems index de320f5..2cece17 100644 --- a/Shared/Shared.projitems +++ b/Shared/Shared.projitems @@ -14,9 +14,8 @@ - - + \ No newline at end of file diff --git a/Shared/Shared.shproj b/Shared/Shared.shproj index 397149a..33096c7 100644 --- a/Shared/Shared.shproj +++ b/Shared/Shared.shproj @@ -15,7 +15,6 @@ - @@ -24,4 +23,4 @@ - + \ No newline at end of file