[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2100
  • Last Modified:

Joystick control using DirectX 11 in VB.NET

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
gprodri
Asked:
gprodri
1 Solution
 
gprodriAuthor Commented:
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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now