[KMS] Print device names when adding input devices

This commit is contained in:
thefiddler 2014-07-17 11:59:04 +02:00
parent 36bb366638
commit 4f037c882a

View file

@ -372,14 +372,14 @@ namespace OpenTK.Platform.Linux
{ {
KeyboardDevice keyboard = new KeyboardDevice(device, Keyboards.Count); KeyboardDevice keyboard = new KeyboardDevice(device, Keyboards.Count);
Keyboards.Add(keyboard.Id, keyboard); 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)) if (LibInput.DeviceHasCapability(device, DeviceCapability.Mouse))
{ {
MouseDevice mouse = new MouseDevice(device, Mice.Count); MouseDevice mouse = new MouseDevice(device, Mice.Count);
Mice.Add(mouse.Id, mouse); 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)) if (LibInput.DeviceHasCapability(device, DeviceCapability.Touch))