Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
2,062 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 750 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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 …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month9 days, 18 hours left to enroll

927 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