mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-07 10:30:38 +00:00
Log errors in subsystem initialization
This commit is contained in:
parent
1d61bd9dd2
commit
2f1a81da2c
|
@ -59,7 +59,14 @@ namespace OpenTK.Platform.SDL2
|
||||||
driver_handle = new IntPtr(count++);
|
driver_handle = new IntPtr(count++);
|
||||||
DriverHandles.Add(driver_handle, this);
|
DriverHandles.Add(driver_handle, this);
|
||||||
SDL.AddEventWatch(EventFilterDelegate, driver_handle);
|
SDL.AddEventWatch(EventFilterDelegate, driver_handle);
|
||||||
SDL.InitSubSystem(SystemFlags.JOYSTICK | SystemFlags.GAMECONTROLLER);
|
if (SDL.InitSubSystem(SystemFlags.JOYSTICK) < 0)
|
||||||
|
{
|
||||||
|
Debug.Print("[SDL2] InputDriver failed to init Joystick subsystem. Error: {0}", SDL.GetError());
|
||||||
|
}
|
||||||
|
if (SDL.InitSubSystem(SystemFlags.GAMECONTROLLER) < 0)
|
||||||
|
{
|
||||||
|
Debug.Print("[SDL2] InputDriver failed to init GameController subsystem. Error: {0}", SDL.GetError());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue