public Point GetPosition(int frame = 0) { if (frame >= StatesCount) { throw new ArgumentOutOfRangeException(nameof(frame), $"{nameof(frame)} >= {StatesCount}"); } return(mouseStateBuffer.AtOffset(-frame).Position); }
public string GetCharacters(int frame = 0) { if (frame >= StatesCount) { throw new ArgumentOutOfRangeException(nameof(frame), $"{nameof(frame)} >= {StatesCount}"); } return(keyboardCharacterBuffer.AtOffset(-frame)); }
public IEnumerable <Keys> GetKeysDown(int frame = 0) { if (frame >= StatesCount) { throw new ArgumentOutOfRangeException(nameof(frame), $"{nameof(frame)} >= {StatesCount}"); } return(keyboardStateBuffer.AtOffset(-frame) .GetPressedKeys()); }