mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 06:55:38 +00:00
[Input] Initialize JoystickDevice.Details in constructor
This commit is contained in:
parent
fb57a9062d
commit
a8fb977017
|
@ -156,12 +156,13 @@ namespace OpenTK.Input
|
||||||
|
|
||||||
// Provides platform-specific information about the relevant JoystickDevice.
|
// Provides platform-specific information about the relevant JoystickDevice.
|
||||||
internal sealed class JoystickDevice<TDetail> : JoystickDevice
|
internal sealed class JoystickDevice<TDetail> : JoystickDevice
|
||||||
|
where TDetail : new()
|
||||||
{
|
{
|
||||||
internal JoystickDevice(int id, int axes, int buttons)
|
internal JoystickDevice(int id, int axes, int buttons)
|
||||||
: base(id, axes, buttons)
|
: base(id, axes, buttons)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
internal TDetail Details;
|
internal TDetail Details = new TDetail();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in a new issue