[Input] Implemented IGamePadDriver.GetName()
This commit is contained in:
parent
c2c76f2ab2
commit
dc1ffab78d
1 changed files with 8 additions and 1 deletions
|
@ -91,7 +91,14 @@ namespace OpenTK.Platform
|
||||||
|
|
||||||
public string GetName(int index)
|
public string GetName(int index)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
JoystickCapabilities joy = Joystick.GetCapabilities(index);
|
||||||
|
string name = String.Empty;
|
||||||
|
if (joy.IsConnected)
|
||||||
|
{
|
||||||
|
GamePadMap map = GetConfiguration(Joystick.GetGuid(index));
|
||||||
|
name = map.Name;
|
||||||
|
}
|
||||||
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Private Members
|
#region Private Members
|
||||||
|
|
Loading…
Reference in a new issue