Whatever I do, I have some micro freeze about every 0.5second when I use "al_get_joystick_state" in my GameLoop.
#SelectExpand
1 2while(!_quit) 3{ 4 ...
5al_get_keyboard_state(&_keyState);// <---- OK mouvement smooth 6 ...
7al_get_mouse_state(&_mouseState);// <---- OK mouvement smooth 8 ...
9al_get_joystick_state(joy, &_joyState);// <---- KO jerky mouvement !! 10 ...
11 12// use input state & update & draw 13}
I use Allegro 5.2.11.
EDIT: OK , my bad I just found the solution, just need to make a ALLEGRO_JOYSTICK variable outside the GameLoop.