dinput: Implement DIPROP_INSTANCENAME for joystick.

This commit is contained in:
Lucas Zawacki 2012-10-11 10:45:27 -03:00 committed by Alexandre Julliard
parent 913cbb9f21
commit 478f0b6691
1 changed files with 11 additions and 0 deletions

View File

@ -328,6 +328,17 @@ HRESULT WINAPI JoystickWGenericImpl_GetProperty(LPDIRECTINPUTDEVICE8W iface, REF
}
break;
}
case (DWORD_PTR) DIPROP_INSTANCENAME: {
DIPROPSTRING *ps = (DIPROPSTRING*) pdiph;
DIDEVICEINSTANCEW didev;
didev.dwSize = sizeof(didev);
IDirectInputDevice_GetDeviceInfo(iface, &didev);
lstrcpynW(ps->wsz, didev.tszInstanceName, MAX_PATH);
return DI_OK;
}
default:
return IDirectInputDevice2WImpl_GetProperty(iface, rguid, pdiph);
}