//Inits SDL and grabs the sticks static void Init() { running = true; try { Joystick.Init(); sdl = true; } catch (Exception exc) { } for (int i = 0; i < 4; i++) { PadConfig pc = settings[i]; if (pc != null) { devices[i] = Sdl.SDL_JoystickOpen(pc.ID); } } }
private static void Init() { SdlGamePad.running = true; try { Joystick.Init(); SdlGamePad.sdl = true; } catch (Exception ex) { } for (int index = 0; index < 4; ++index) { PadConfig padConfig = SdlGamePad.settings[index]; if (padConfig != null) { SdlGamePad.devices[index] = Sdl.SDL_JoystickOpen(padConfig.Index); } } }
//Inits SDL and grabs the sticks static void Init() { running = true; try { Joystick.Init(); sdl = true; } catch (Exception) { } for (int i = 0; i < 4; i++) { PadConfig pc = settings[i]; #if !PORTABLE if (pc != null) { devices[i] = Sdl.SDL_JoystickOpen(pc.Index); } #endif } }