dinput: Add support for DIPROP_VIDPID property in Linux js implementation.

Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Bruno Jesus 2016-08-14 15:26:23 -03:00 committed by Alexandre Julliard
parent f1b782bfc8
commit 58937117fb
1 changed files with 10 additions and 0 deletions

View File

@ -645,6 +645,16 @@ static HRESULT WINAPI JoystickLinuxWImpl_GetProperty(LPDIRECTINPUTDEVICE8W iface
switch (LOWORD(rguid)) { switch (LOWORD(rguid)) {
case (DWORD_PTR) DIPROP_VIDPID:
{
LPDIPROPDWORD pd = (LPDIPROPDWORD)pdiph;
if (!This->joydev->product_id || !This->joydev->vendor_id)
return DIERR_UNSUPPORTED;
pd->dwData = MAKELONG(This->joydev->vendor_id, This->joydev->product_id);
TRACE("DIPROP_VIDPID(%08x)\n", pd->dwData);
break;
}
case (DWORD_PTR) DIPROP_JOYSTICKID: case (DWORD_PTR) DIPROP_JOYSTICKID:
{ {
LPDIPROPDWORD pd = (LPDIPROPDWORD)pdiph; LPDIPROPDWORD pd = (LPDIPROPDWORD)pdiph;