Sign in to follow this  

joystick function problems

Recommended Posts

First Question is what componet port does the joysticks function use, is it usb or is it the joystick port, I am using this if statment to see if the controller is plugged in. The problem is if it isnt plugged in or not, the program says it is. NOTE my joystick is a usb connection. JOYINFO theinfo; // joystick structure if(joyGetPos(JOYSTICKID1,&theinfo) != JOYERR_UNPLUGGED) { cout << "joystick is plugged in and ready to know"; } else { cout << "not plugged in"; }

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this