inst is the class instance pointer.
but i see 1 problems:
1 - i activate the 1st joystick(JOYSTICKID1). but imagine that i want activate more.. how can i do it?
2 - if the joystick messages are: MM_JOY2BUTTONDOWN(up and move) and MM_JOY1BUTTONDOWN(up and move)... how can i get the messages for other joysticks?
3 - how can i get the number of connected joysticks?