views:

681

answers:

3

Hi,

i'm just starting to play around with directx and i've read a few articles on the internet that use xinput to interface with the xbox controller.

but when i try to use it in my c# app, i can't seem to find the correct assembly to reference. from what I understand, it's supposed to be in Microsoft.DirectX.dll (namespace Microsoft.DirectX.XInput) but that doesn't get resolved when i add the reference.

am i missing something? should i maybe try an earlier version of the sdk?

any input would be appreciated.

Thanks :)

+2  A: 

It seems odd here. Microsoft doesn't provide managed directx anymore, and I've just check my reference list, there's no Microsoft.DirectX.XInput for managed library. Most like it's only available for C++ and XNA only.

faulty
+1  A: 

thanks, i'll try the version of the sdk they used in the article i ran across (it was c# code, so it must be "somewhere") :)

Velislav Gebrev
That must be using MDX 1.1 or MDX 2.0 Beta. MDX 2.0 was discontinued when MS started XNA. The beta library expired few months back in August. It could have been from the SDK before MS scrapped MDX.
faulty
thanks faulty, i will look into xna next, but for now walt d's suggestion of slimdx meets my needs.
Velislav Gebrev
+2  A: 

There's an excellent 3rd-party wrapper around DirectX for .Net called SlimDX: http://slimdx.mdxinfo.com/wiki/index.php?title=Main_Page

It's very similar to Managed DX. I've been using it for a couple months now with 0 problems.

Walt D
thanks, slimdx seems to do the job perfectly fine and it's a 30meg download as opposed to 450meg :) still gonna play around with XNA but for now slimdx meets my needs perfectly.
Velislav Gebrev
Even better, the SlimDX redistributable package is only 8mb, and it includes DirectX as well!
Walt D