C and C++ do not support joysticks or mice (mouses??) There is no simple solution and any solution must use os-specific api functions. DirectX, DirectDraw, etc are complicated and not for beginners. If you search google you might find a useful device driver for your program.
Ancient Dragon
Retired & Loving It
30,050 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343