Methods for Checking Joystick Status

An application can receive information from the joystick in one of two ways:

By processing joystick messages from a captured joystick

By polling the joystick directly

The message-processing method can be simpler to use; your application is sent messages that indicate the position of the stick and the state of the buttons (pressed or released).