Moving joystick possible?

I’ve been searching around and I really cannot find or think of a way to implement a crosshair that either follows the direction of a spaceship, or follows the position of a joystick.
I see a lot of static crosshair help, or ones that follow mouse cursor but I’m lost how to make it work on Android, if you have any info I would greatly appreciate it, thanks.

Edit, wow I’m really tired. What I meant to ask is about a moving crosshair, not joystick, I’ll ask mod to edit title.

So you want to use a joystick on screen for manipulating the position of your crosshair so in other words simulating a mouse which you would have on a pc?
Why dont you just take a look at the joystick implementations form the mobile standard assets?! a little look at the settings and code will give you an idea of how the input is read. Your adjustment in this case would be to convert the movement of a character or a camera to the position of your crosshair.