Using Joystick to do Autotrim for Pixhawk

My question is : Can I use a Logitech Extreme 3D Pro joystick to do the autotrim ?
I have pixhawk and radio telemetries, but I can’t buy RC. I want to fly my quadcopter in guided mode without RC.

I tried to fly my quad in stabilized mode using xbox joystick, it flies okay, but it tends to tilt one way or another. I searched and found that I need to do autotrim as mentioned in this link … or_another

The xbox controller I used has a few number of buttons, so I could not assign a button to CH 7.
Now, I want to buy a Logitech Extreme 3D Pro Joystick. … wgodOSMPUQ

Can I use this joystick to do the autotrim, please? Thank you in advance.