public Input() { Sdl.SDL_InitSubSystem(Sdl.SDL_INIT_JOYSTICK); Controller = new XboxController(0); _usingController = true; }
public Input() { Sdl.SDL_InitSubSystem(Sdl.SDL_INIT_JOYSTICK); if (Sdl.SDL_NumJoysticks() > 0) { Controller = new XboxController(0); _usingController = true; } }
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); } }