I am stuck on a problem: in my software I have to code for finding the number of joysticks connected to my Mac using C++… I have no idea about that…
Any sample code or suggestion will very much helpful for me.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use SDL library, it should work on Mac and PC as well. Documentation
Number of joysticks can be determined with just one function call: