Solved

Joystick control using DirectX 11 in VB.NET

Posted on 2013-11-07
1
1,872 Views
Last Modified: 2013-11-08
Can I read input from a USB joystick in VB.NET VS2010 on Windows 7 64 bit machine. I am trying to utilize the Microsoft.DirectX.DirectInput framework but having no success. Should I be looking into the XNA framework? I ran dxdiag and it shows that DirectX 11 is installed but where are the dll references? Please Help
0
Comment
Question by:gprodri
1 Comment
 

Accepted Solution

by:
gprodri earned 0 total points
ID: 39634020
I was able to read input for a USB joystick using DirectX.DirectInput by
1. Downloading DirectX SDK from http://www.microsoft.com/en-us/download/confirmation.aspx?id=6812
2. Creating VB.Net Project in VS2010 Framework 4.0 with help from sample code at http://settorezero.blogspot.com/2010/11/using-joysticks-from-vbnet.html
3. Applying the following to the project's app.config file
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to remove duplicate code from my project 5 35
Vb.net threads keep increasing 2 36
Adding items to a C# list incrementally 5 33
Groupbox Control ? 2 18
Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question