Help me please

Hi Everyone, I would like to get some help with these questions. I need to make a 2D game where you use 2 analog joysticks (like the ps2 ones) , one for moving (up right down left) and another one to move the character's arm 360° for aiming, i dont understand how to stablish that from certain values in X and in Y are for left right up or down, so if you could give me a hand i would be very grateful, thanks and sorry for my english

If you can find analog pots, they have variable resistors in them. Apply 5V & Gnd to the pots legs, read the voltage in the middle. If centered by springs, analogRead() will return around 512, full one direction will be close to 0, full the other way will be close to 1023.
The 2nd pot will be read on a 2nd pin, and return similar results.

If you have a joystick with a digital output, that will depend on the interface type. It will likely have active electronics for a serial signal to be read.

Here's a good example of a straight analog joystick with no buttons.