problem With USB Host and Joystick Code

I have the Arduino Mega and and i wants to connected it to the LOGITECH 3D JOYSTICK with the Arduino USB HOST SHILD;
please help me I have to run this for my project at the university Can you write me a order of operations or send me a code?

I also have to activate ALL the JOYSTICK buttons

i downloaded the USB host liybrary and run a sample ; but it does not include any BUTTON...

CAN someone who already did this proj' can help???

thank you a lot.

Look at the examples for the USB host shield library. There is one for the Logitech Extreme 3D Pro. The name of the example sketch is "le3dp". The example code is included in the Arduino IDE when the library is installed but you can also find it on github.

I saw it , but i didnt saw any use of buttons in the code ...

If i will flash this code to the arduino mega ,
I could use the joystick buttons???

The word "Buttons" appears in the source code so, yes, I think it supports buttons. You just should run the example and see what comes out on the serial console when buttons are pressed on the joystick.