Original Post
Ok, this is in my input wrapper class...as you can see, it was "cut-and-paste" code (*sigh*)
HRESULT Get_KBinput(BYTE diks[])
{
if(g_pdidDevice2)
{
HRESULT hr;
hr = g_pdidDevice2->GetDeviceState( sizeof(diks), &diks );
// Check whether the input stream has been interrupted. If so,
// re-acquire and try again.
if( hr == DIERR_INPUTLOST )
{
hr = g_pdidDevice2->Acquire();
if( FAILED(hr) )
return E_FAIL;
}
return S_OK;
}
}
Its supposed to fill a var BYTE kb[256] with valid values; unfortunately, it doesnt fill it right if at all (it runs, though
) Thanks in advance