The joystick from your Xbox controller is made of whopping 12 individual parts! To teach myself 3D modelling I’ve copied the design, with painstaking detail, in Fusion 360. Check my model out on thinkgyverse or this animation:

I’ve modeled the parts to 0.1 mm precision to test out the digital caliper I just bought. As well as to fit it in a spider bot I’m designing. The legs will be connected to the body via the joystick to allow for 2 degrees of freedom as well feedback joint measurements to train a walking neural net.

Joystick Parts.

The joystick also uses a button and 2 potentiometers. Turns out even these guys are a lot more complex than they look: