Xbox controller in VS 2012
I am aiming to make a program to control VLC (Media Player) with an xbox controller. I've seen a couple of programs that do this but whenever i try to Import Xinput (This), XNA Framework or DirectX it causes an error. I'm positive i have all the DirectX SDK's Redists installed. Anyone have an idea on what to do?
Re: Xbox controller in VS 2012
I am using Windows 7 Pro.
Forgot to mention it.
Re: Xbox controller in VS 2012
Quote:
it causes an error
The error that shall not be named? The XInput package looks like it's exactly what you're looking for so what specifically goes wrong (and where) when you 'import' it?
Re: Xbox controller in VS 2012
Keeps saying "Warning 1 Namespace or type specified in the Imports 'Xinput' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:\Users\Ducky\Documents\Visual Studio 2012\Projects\Xbox Controller\Xbox Controller\Form1.vb 1 9 Xbox Controller
". Yes on the import. should be similar to "Imports Xinput" right?
Re: Xbox controller in VS 2012
You can't import anything without adding a reference to it first! Project Menu > Add Reference > Browse tab. Find the dll (I'm assuming it's a dll) and click. Now the project knows where to look it should be possible to import without difficulty! Don't forget that if you're going to be distributing this program you'll need to include the dll.
Re: Xbox controller in VS 2012
I tryed that but every time i try to import the Xinput dll it says "A reference to 'C:\windows\system32\xinput1_3.dll' could npt be added. Please make sure the file is accessible, and that is a valid Assembly or COM component"
Re: Xbox controller in VS 2012
PM either Shaggy_Hiker or dday9 to this thread. They're the most active XNA guys around here.