|
-
Apr 25th, 2013, 07:09 PM
#1
Thread Starter
New Member
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?
-
Apr 25th, 2013, 07:10 PM
#2
Thread Starter
New Member
Re: Xbox controller in VS 2012
I am using Windows 7 Pro.
Forgot to mention it.
-
Apr 25th, 2013, 07:36 PM
#3
Re: Xbox controller in VS 2012
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?
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Apr 26th, 2013, 02:11 PM
#4
Thread Starter
New Member
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?
-
Apr 26th, 2013, 02:20 PM
#5
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.
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Apr 26th, 2013, 02:49 PM
#6
Thread Starter
New Member
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"
-
Apr 26th, 2013, 06:28 PM
#7
Re: Xbox controller in VS 2012
PM either Shaggy_Hiker or dday9 to this thread. They're the most active XNA guys around here.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|