Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[KMS] Print device names when adding input devices

  • Loading branch information...
commit 4f037c882abfdd00a92062de8fcd7b25698b1425 1 parent 36bb366
@thefiddler thefiddler authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/OpenTK/Platform/Linux/LinuxInput.cs
View
4 Source/OpenTK/Platform/Linux/LinuxInput.cs
@@ -372,14 +372,14 @@ void HandleDeviceAdded(IntPtr context, IntPtr device)
{
KeyboardDevice keyboard = new KeyboardDevice(device, Keyboards.Count);
Keyboards.Add(keyboard.Id, keyboard);
- Debug.Print("[Input] Added keyboard device {0}", keyboard.Id);
+ Debug.Print("[Input] Added keyboard device {0} '{1}'", keyboard.Id, keyboard.Name);
}
if (LibInput.DeviceHasCapability(device, DeviceCapability.Mouse))
{
MouseDevice mouse = new MouseDevice(device, Mice.Count);
Mice.Add(mouse.Id, mouse);
- Debug.Print("[Input] Added mouse device {0}", mouse.Id);
+ Debug.Print("[Input] Added mouse device {0} '{1}'", mouse.Id, mouse.Name);
}
if (LibInput.DeviceHasCapability(device, DeviceCapability.Touch))
Please sign in to comment.
Something went wrong with that request. Please try again.