This is the support thread for Advanced Mobile Input. If you have any questions regarding the pack, feel free to ask, and I will get back to you as soon as possible.
Marketplace page: Advanced Mobile Input in Blueprints - UE Marketplace
Release trailer:
FAQ:
Q: How do I clamp the camera location so that the player cannot infinitely zoom in or out?
A: This is pretty easy, just use the Clamp node, here is an example of how to keep the camera Z between 0 and 5000:
Hi,
Is it possible to detect double touch input only when they are in a restricted area? I need to use zoom, pan and virtual joystick but when I try to rotate the camera with the pan function while using the virtual joystick, it’s zooming because the joysticks are considered as a touch
Yes, but this needs to be done on your end. Where you tell the Advanced Mobile Input component that there is touch input (Such as in your Character Blueprint), you can just tell it about the input only when the finger location is in a certain place, or by whatever criteria you have.
I tried this but it doesn’t work. The “one finger” touch event works when it’s done in the restricted area but when I use the virtual joystick at the same time, it’s considered as a double touch and then it’s zooming.
If the touch is bubbling down from your joystick, then your joystick is not handing the input. This applies to any UMG elements where input bubbles down.
Oh, I understand what is happening now. This is because the system uses absolute finger indices. Let me see how Unreal handles finger indices in your case, and get back to you sometime tomorrow.
Just to update you, I have made a fix for this, that will allow you to use joysticks and the rest of the functionality seamlessly. I am just doing some testing to make sure everything works as desired right now. After I submit the update, it may take a few days for the marketplace team to publish it. Cheers!
There are changes in almost every function, as this deals with how the fingers are referenced. I feel it would be a bit tedious to show these changes via email. I also do not want to miss anything, which would lead to the pack malfunctioning.