i understand how can i activate the joystick:
but i see 1 problem: i must activate for all connected joysticks, but how can i get the number of connected joysticks?Code:joySetCapture(inst->hWnd(),JOYSTICKID1,100,true); joySetCapture(inst->hWnd(),JOYSTICKID2,100,true);
and then i must release the joystick(when i don't need it):
i activate the joystick, when the form is created, but i think that isn't the right way to do, because the user can connect the joystick when want's.Code:joyReleaseCapture(JOYSTICKID1); joyReleaseCapture(JOYSTICKID2);
please anyone tell me something.