Can't get game controller axis event

Hi,

i try to get game controller axis event so i use event.caxis.axis == SDL_CONTROLLER_AXIS_LEFTX, because for button i use event.cbutton.button == SDL_CONTROLLER_BUTTON_DPAD_LEFT but it is not recognizing when i move any joystick of my xbox one controller.

What is wrong ?