dinput: Implement GetProperty for JOYSTICKID (LinuxInput driver).

This commit is contained in:
Lucas Zawacki 2012-05-29 13:42:27 -03:00 committed by Alexandre Julliard
parent fbfdc6db65
commit 2cd3b908ad
1 changed files with 9 additions and 0 deletions

View File

@ -965,6 +965,15 @@ static HRESULT WINAPI JoystickWImpl_GetProperty(LPDIRECTINPUTDEVICE8W iface, REF
break; break;
} }
case (DWORD_PTR) DIPROP_JOYSTICKID:
{
LPDIPROPDWORD pd = (LPDIPROPDWORD)pdiph;
pd->dwData = get_joystick_index(&This->generic.base.guid);
TRACE("DIPROP_JOYSTICKID(%d)\n", pd->dwData);
break;
}
default: default:
return JoystickWGenericImpl_GetProperty(iface, rguid, pdiph); return JoystickWGenericImpl_GetProperty(iface, rguid, pdiph);
} }