   DirectX and MinGW
  I'm trying to build a library that uses dinput with mingw.  Mingw comes with the dinput libs, but it does not come with dinput.h.  I found a few things around the net that have dinput.h in them, but none of them define IDirectInputDevice8, which is what I'm looking for.  Does anyone know where I should download this?  I have the directx 9 sdk, but I think that only deals with d3d (not sure though, I've only worked with ogl up to this point).   
  Possibly dx80_mgw.zip, from http://alleg.sourceforge.net/wip.html?This is not by any means the full SDK, but I expect it'd be enough to get you going.   ;  The DirectX SDK contains all the headers for directdraw, direct3D, Input, sound, networking, and a few other things. Look there for the correct headers.   