Beispiel #1
0
        public InputHandler(Game game)
            : base(game)
        {
            game.Services.AddService(typeof(IInputHandler), this);

            keyboard = new KeyboardHandler();
            mouse = new MouseHandler();
            Game.IsMouseVisible = true;
        }
Beispiel #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
        }