/// <summary> /// Allows the game component to perform any initialization it needs to before starting /// to run. This is where it can query for any required services and load content. /// </summary> public override void Initialize() { // TODO: Add your initialization code here keys = new MMGKeyboard(); base.Initialize(); }
public MMGKeyboard() { secretKeyboard = this; pressed = new List<Keys>(); released = new List<Keys>(); timer = new Dictionary<Keys, float>(); names = new Dictionary<string, Keys>(); keyboard = Keyboard.GetState(); previous = current = keyboard.GetPressedKeys(); }