arduino and joystick

i have an Arduino Uno and i want to send signal from a joystick that is connected to the computer. i cant connect Arduino with the joystick because the application I'm doing will be far away from the controller. do you know the codes i have to use?

thank you for your help

do you know the codes i have to use?

What application is reading the joystick data? Can it write to the serial port?