This is an example of how to use the JoystickMessageRead function along with the JoystickMessageType structure.