Click here to Skip to main content
16,016,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends I need to interface Joystick to my computer can you please help me
Posted

1 solution

Yes. You need to use Microsoft.DirectX.DirectInput. It needs to understanding pretty advanced techniques; and the documentation is not perfect.

Main problem is discovery if the features of a particular device and creating joystick events, which is not a trivial thing, as it is based on threading and EventWaitHandle.

Please see my past answers on this topic:
Creating A Joystick Event?[^],
can't detect the z axis of the joystick via directinput[^] (and discussion).

So, if you face problems you know who to ask. :-)

—SA
 
Share this answer
 
Comments
[no name] 6-Jul-11 2:02am    
nice solution.
Sergey Alexandrovich Kryukov 6-Jul-11 2:08am    
Thank you. It's based on well-tested coding, few years ago.
--SA
[no name] 6-Jul-11 2:15am    
Welcome :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900