From: Bruno Jesus <00cpxxx@gmail.com> Subject: dinput: Add support for DIPROP_VIDPID property in Linux js implementation Message-Id: Date: Sun, 14 Aug 2016 15:26:23 -0300 Signed-off-by: Bruno Jesus <00cpxxx@gmail.com> diff --git a/dlls/dinput/joystick_linux.c b/dlls/dinput/joystick_linux.c index 83d50dc..675c33c 100644 --- a/dlls/dinput/joystick_linux.c +++ b/dlls/dinput/joystick_linux.c @@ -645,6 +645,16 @@ static HRESULT WINAPI JoystickLinuxWImpl_GetProperty(LPDIRECTINPUTDEVICE8W iface 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: { LPDIPROPDWORD pd = (LPDIPROPDWORD)pdiph;