Пример #1
0
        public Input()
        {
            Sdl.SDL_InitSubSystem(Sdl.SDL_INIT_JOYSTICK);

            Controller       = new XboxController(0);
            _usingController = true;
        }
Пример #2
0
 public Input()
 {
     Sdl.SDL_InitSubSystem(Sdl.SDL_INIT_JOYSTICK);
     if (Sdl.SDL_NumJoysticks() > 0)
     {
         Controller       = new XboxController(0);
         _usingController = true;
     }
 }
Пример #3
0
 public Input()
 {
     Sdl.SDL_InitSubSystem(Sdl.SDL_INIT_JOYSTICK);
     if (Sdl.SDL_NumJoysticks() > 0)
     {
         Controller = new XboxController(0);
         _usingController = true;
     }
 }
Пример #4
0
        public InputTestState()
        {
            Sdl.SDL_InitSubSystem(Sdl.SDL_INIT_JOYSTICK);
            if (Sdl.SDL_NumJoysticks() > 0)
            {
                // Start using the joystick code
                _useJoystick = true;
                _controller = new XboxController(0);
            }

        }