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