Commit 3083b0a6 authored by Christoph Frick's avatar Christoph Frick Committed by Alexandre Julliard

dinput: Implement the GetProperty call for getting the range of an axis.

parent 141a2679
......@@ -1443,13 +1443,14 @@ static HRESULT WINAPI JoystickAImpl_GetProperty(LPDIRECTINPUTDEVICE8A iface,
}
case (DWORD) DIPROP_RANGE: {
/* LPDIPROPRANGE pr = (LPDIPROPRANGE) pdiph; */
if ((pdiph->dwHow == DIPH_BYID) &&
(pdiph->dwObj & DIDFT_ABSAXIS)) {
/* The app is querying the current range of the axis : return the lMin and lMax values */
FIXME("unimplemented axis range query.\n");
LPDIPROPRANGE pr = (LPDIPROPRANGE) pdiph;
int obj = find_property_offset(This, pdiph);
if (obj >= 0) {
pr->lMin = This->joydev->havemin[obj];
pr->lMax = This->joydev->havemax[obj];
TRACE("range(%ld, %ld) obj=%d\n", pr->lMin, pr->lMax, obj);
return DI_OK;
}
break;
}
......
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