the form can use, with WM_TIMER message, 2 timers?
why the question: because i create a 2nd timer(the 1st timer works fine) in WM_CREATE message, but seems be ignored and i don't know avaliate the SetTimer() did a job or error :(
see the code:
in WM_CREATE message: SetTimer(inst->hWnd(),JoystickTimer,120,NULL);
the inst is the class form instance pointer.
in WM_TIMER:
what is inst->hWnd() ?
Because WM_CREATE is called from withing the CreateWindowEx, and if this inst is some kind of structure initialized before creating window it will be invalid. Try using HandleWindow instead. Or simply create Timer after creating window.
inst is the form instance class... the hWnd() is for get the form hwnd.
why these way instead the joystick messages? because the joystick messages are limited for 2 joysticks and only 4 buttons :(