mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 10:45:28 +00:00
Add description to joysticks opened from the legacy path.
This commit is contained in:
parent
f46deb7103
commit
1a0c3ff31f
|
@ -58,7 +58,8 @@ namespace OpenTK.Platform.X11
|
||||||
JoystickDevice stick = OpenJoystick(JoystickPath, number++);
|
JoystickDevice stick = OpenJoystick(JoystickPath, number++);
|
||||||
if (stick != null)
|
if (stick != null)
|
||||||
{
|
{
|
||||||
stick.Description = String.Format("USB Joystick {0} ({1} axes, {2} buttons)", number, stick.Axis.Count, stick.Button.Count);
|
stick.Description = String.Format("USB Joystick {0} ({1} axes, {2} buttons, {3})",
|
||||||
|
number, stick.Axis.Count, stick.Button.Count, JoystickPath);
|
||||||
sticks.Add(stick);
|
sticks.Add(stick);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,7 +69,11 @@ namespace OpenTK.Platform.X11
|
||||||
{
|
{
|
||||||
JoystickDevice stick = OpenJoystick(JoystickPathLegacy, number++);
|
JoystickDevice stick = OpenJoystick(JoystickPathLegacy, number++);
|
||||||
if (stick != null)
|
if (stick != null)
|
||||||
|
{
|
||||||
|
stick.Description = String.Format("USB Joystick {0} ({1} axes, {2} buttons, {3})",
|
||||||
|
number, stick.Axis.Count, stick.Button.Count, JoystickPathLegacy);
|
||||||
sticks.Add(stick);
|
sticks.Add(stick);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue