ChristianLa91 / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

Copy and Paste error in DirectInput.Device.GetObjectInfoById() #716

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
DeviceObjectInstance Device::GetObjectInfoById( int objectId )
{
    DIDEVICEOBJECTINSTANCE di;
    di.dwSize = sizeof( DIDEVICEOBJECTINSTANCE );

    HRESULT hr = InternalPointer->GetObjectInfo( &di, objectId, DIPH_BYUSAGE );
    if( RECORD_DINPUT( hr ).IsFailure )
        return DeviceObjectInstance();

    return DeviceObjectInstance( di );
}

I'm pretty sure this should say DIPH_BYID in the call to GetObjectInfo().

Original issue reported on code.google.com by cygon@nuclex.org on 22 Aug 2010 at 2:56

GoogleCodeExporter commented 9 years ago
Forgot to provide, this is the June 2010 release, I checked out revision 1628 
of the sources.

Original comment by cygon@nuclex.org on 22 Aug 2010 at 4:43

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1640.

Original comment by Mike.Popoloski on 30 Aug 2010 at 3:52