Does anyone know how you can store postions from a joystick into variables?

Thanks Michael