コード例 #1
0
        public KeyboardService(CoroutineService coroutineService)
        {
            //_lastKeyboardState = Microsoft.Xna.Framework.Input.Keyboard.GetState();
            coroutineService.StartCoroutine(Update());

            Instance = this;
        }
コード例 #2
0
ファイル: MouseService.cs プロジェクト: raycrasher/Fell-Sky
 public MouseService(CoroutineService coroutineService)
 {
     coroutineService.StartCoroutine(Update());
     _lastState = Mouse.GetState();
     _position = _lastState.Position;
     _window = ServiceLocator.Instance.GetService<GameWindow>();
     _graphics = ServiceLocator.Instance.GetService<GraphicsDevice>();
 }