Commit 58937117 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

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

parent f1b782bf
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment