From 1a0c3ff31fee7bd1009a783023a66e489915125a Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 1 Mar 2009 01:26:04 +0000 Subject: [PATCH] Add description to joysticks opened from the legacy path. --- Source/OpenTK/Platform/X11/X11Joystick.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/X11/X11Joystick.cs b/Source/OpenTK/Platform/X11/X11Joystick.cs index 9ae5fa85..04cb448f 100644 --- a/Source/OpenTK/Platform/X11/X11Joystick.cs +++ b/Source/OpenTK/Platform/X11/X11Joystick.cs @@ -58,7 +58,8 @@ namespace OpenTK.Platform.X11 JoystickDevice stick = OpenJoystick(JoystickPath, number++); 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); } } @@ -68,7 +69,11 @@ namespace OpenTK.Platform.X11 { JoystickDevice stick = OpenJoystick(JoystickPathLegacy, number++); 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); + } } }