Ejemplo n.º 1
0
        public KeyboardService(CoroutineService coroutineService)
        {
            //_lastKeyboardState = Microsoft.Xna.Framework.Input.Keyboard.GetState();
            coroutineService.StartCoroutine(Update());

            Instance = this;
        }
Ejemplo n.º 2
0
 public MouseService(CoroutineService coroutineService)
 {
     coroutineService.StartCoroutine(Update());
     _lastState = Mouse.GetState();
     _position = _lastState.Position;
     _window = ServiceLocator.Instance.GetService<GameWindow>();
     _graphics = ServiceLocator.Instance.GetService<GraphicsDevice>();
 }