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:
parent
f1b782bfc8
commit
58937117fb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue