dinput: Implement GetProperty for JOYSTICKID (LinuxInput driver).
This commit is contained in:
parent
fbfdc6db65
commit
2cd3b908ad
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue