Results 1 to 7 of 7

Thread: Xbox controller in VS 2012

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2013
    Posts
    4

    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?

  2. #2

    Thread Starter
    New Member
    Join Date
    Apr 2013
    Posts
    4

    Re: Xbox controller in VS 2012

    I am using Windows 7 Pro.
    Forgot to mention it.

  3. #3
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Xbox controller in VS 2012

    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?
    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!

  4. #4

    Thread Starter
    New Member
    Join Date
    Apr 2013
    Posts
    4

    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?

  5. #5
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    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!

  6. #6

    Thread Starter
    New Member
    Join Date
    Apr 2013
    Posts
    4

    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"

  7. #7
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: Xbox controller in VS 2012

    PM either Shaggy_Hiker or dday9 to this thread. They're the most active XNA guys around here.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width