[Input] Initialize JoystickDevice.Details in constructor

This commit is contained in:
thefiddler 2014-01-02 02:20:25 +01:00
parent fb57a9062d
commit a8fb977017

View file

@ -156,12 +156,13 @@ namespace OpenTK.Input
// Provides platform-specific information about the relevant JoystickDevice.
internal sealed class JoystickDevice<TDetail> : JoystickDevice
where TDetail : new()
{
internal JoystickDevice(int id, int axes, int buttons)
: base(id, axes, buttons)
{ }
internal TDetail Details;
internal TDetail Details = new TDetail();
}
#endregion