Exemplo n.º 1
0
        public InputHandler(Game game)
            : base(game)
        {
            game.Services.AddService(typeof(IInputHandler), this);

            keyboard = new KeyboardHandler();
            mouse = new MouseHandler();
            Game.IsMouseVisible = true;
        }
Exemplo n.º 2
0
        public InputHandler(Game game)
            : base(game)
        {
            game.Services.AddService(typeof(IInputHandler), this);
            keyboard = new KeyboardHandler();

#if !XBOX360
            mouse = new MouseHandler();
            Game.IsMouseVisible = true;
#endif
        }
Exemplo n.º 3
0
        public InputHandler(Game game)
            : base(game)
        {
            game.Services.AddService(typeof(IInputHandler), this);

            //initialize our member fields
            keyboard = new KeyboardHandler();

#if !XBOX360
            Game.IsMouseVisible = true;
            prevMouseState      = Mouse.GetState();
#endif
        }