Emulate joystick

I’m making a project, and i’m waiting for a joystick that will come to my hands in a few days. But, i have to start programming the joystick now, any way to emulate the joystick? I already have Arduino UNO.

Thanks.

Do you have 2 potentiometers? Use 1 for each axis for testing.

You could create a function that will (in due course) read the values from the potentiometer.

For testing it could return either fixed values or a series of values from an array.

...R

And, I guess, I'm showing my age. I assumed an analog joystick. I forget the XBox and other console controllers (joysticks?). Which specific joystick are you getting?