Ejemplo n.º 1
0
        public ActionSet(Game game)
        {
            left  = new InputAction(game);
            right = new InputAction(game);
            up    = new InputAction(game);
            down  = new InputAction(game);
            shoot = new InputAction(game);

            game.Controllers.ControllerAdded += (newController) =>
            {
                left.AddDevice(newController);
                right.AddDevice(newController);
                up.AddDevice(newController);
                down.AddDevice(newController);
                shoot.AddDevice(newController);
            };
        }