3

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.

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 try an earlier version of the sdk?

Linger
  • 14,942
  • 23
  • 52
  • 79

2 Answers2

2

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
  • 8,117
  • 12
  • 44
  • 61
2

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
  • 4,491
  • 6
  • 33
  • 43
  • 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 Dec 07 '08 at 06:23
  • Even better, the SlimDX redistributable package is only 8mb, and it includes DirectX as well! – Walt D Dec 07 '08 at 18:08