Solved

Reading a joystick's (Logitech, Extreme 3D PRO with USB) position, throttle position, and button status using Visual C++ 6.0

Posted on 2006-11-16
2
1,823 Views
Last Modified: 2013-11-20
I have a Logitech joystick; model "Extreme 3D PRO." The joystick connects by way of USB port on my PC. My programming environment is Visual C++ 6.0. I would like to read the joystick's exact position from C++ code. The joystick profiler that came with the joystick will only translate joystick buttons and control changes into single or multiple keystrokes. The profiler’s keystroke method only gives me a repeated key in one of four joystick directions, so using the profiler will not do what I need. Is there a public domain C++ library that can help me read the buttons, the POV, the throttle, and especially the joystick position, so I can simultaneously move a 2 axis gimbal in the appropriate direction?
0
Comment
Question by:James5863
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 250 total points
ID: 17960470
Check out http://msdn2.microsoft.com/en-us/library/ms709377.aspx ("Joystick Reference"). Unfortunatly, MSDN does not have a complete sample project but just the snippets in that category.
0
 
LVL 22

Expert Comment

by:mahesh1402
ID: 17962845
Using  DirectX : Direct Input 7 Joystick Class
http://www.codeguru.com/cpp/g-m/directx/directinput/article.php/c1227/

-MAHESH
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add content to output file 4 63
how do i create updater to My Activex application? 3 85
How to determine file rename from EventLog ? 2 49
only14 challenge 19 75
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now