Use a image label, and check for mouse enter and input began. Then lock it to the player’s mouse and use clamping, then when input ended fires, return it to its original position. That’s a basic scaffold of what the code should look like.
A thumbstick would be harder to control than a keyboard. I would recommend sticking with keys and having either the arrow keys or wasd as the movement controls.