Controlling recoil by dragging fire button down like PUBG Mobile

Can anyone tell how can I control recoil by dragging the fire button down like in PUBG Mobile. I have tried everything and was able to get Finger Index using OnPreviewMouseButtonDown but it didn’t work well as Finger Index is only useful when not clicking on a button.

When I press and hold a button and pass FingerIndex into GetInputTouchState, the returned boolean (Finger Index Is Currently Pressed is always false). It seems like finger index is only useful when not clicking button.

Also I tried with OnDragDetected events and couldn’t find a solution there too.

I feel like that the only way to do is by making something like SLeafWidget in C++, which I really don’t want to do (I think so because unreal mobile VirtualJoystick is derived from SLeafWidget and works pretty well).

Can anyone help me with a workaround for this in the WidgetBlueprint only?

All I want to know is the finger location all the time(from the time the fire button is pressed until it is released).

Any little help will be appreciated. Thankyou!

1 Like