Making virtual joystick act as a pressable button and getting the on pressed event for it,

I want to set up a virtual joystick that controls the camera, and also I want to setup it a button so when pressed it shoots the bullets, so In short, player can control the camera and shooting with same finger, does anyone know how make the virtual joystick as a button and getting the on pressed event for it.

Hey @Sandy_raj! Welcome to the forums!

I’m trying to imagine what it is you’re trying to do and why you’d need to do that- this can usually determine the best course of action because it’s not that cut and dry when it comes to game mechanics. Is this a first person shooter where you only shoot while turning the camera, am I understanding correctly?

Get back to us!

no, i think i mightve explained it wrong, what im trying to do is, im making a basic fps game, if i make shooting just a button, it would be hard to control the recoil because the player needs to pull the camera down and with just a button it cant be done,
I want the player to be able to shoot and move the camera, to control the recoil,

and if my way of working is dumb, please tell me the easiest way to control the camera while pressing the button with same finger

THis to be precise.

shooting while moving the camera ( 0:36) if the URL didnt copy the exact time stamp