mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 06:25:38 +00:00
[KMS] Print device names when adding input devices
This commit is contained in:
parent
36bb366638
commit
4f037c882a
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue