public KeyboardService(CoroutineService coroutineService) { //_lastKeyboardState = Microsoft.Xna.Framework.Input.Keyboard.GetState(); coroutineService.StartCoroutine(Update()); Instance = this; }
public MouseService(CoroutineService coroutineService) { coroutineService.StartCoroutine(Update()); _lastState = Mouse.GetState(); _position = _lastState.Position; _window = ServiceLocator.Instance.GetService<GameWindow>(); _graphics = ServiceLocator.Instance.GetService<GraphicsDevice>(); }