IDirectInputDevice8W.GetDeviceState

Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
interface IDirectInputDevice8W
extern (Windows) @nogc nothrow @system
HRESULT
GetDeviceState
(
DWORD cbData
,
LPVOID lpvData
)

Meta