Hooking Arduino to Xbox 360 Controller

I want to emulate the Xbox 360 thumb sticks like this topic:

How did this user do the electrical side? I'm trying to emulate the thumbsticks like he did.