How to write signal as same as arcade joystick and insert the coins?

I want to hack the claw crane to allow the user play from computer instead of joystick.

I don't know how to write signal as same as arcade joystick and insert the coins.

Please give me a advice. Thank you.