Hi I want to add axis mapping on button press from mobile device. But I could not find a way to do it. If anyone know please answer.
Hey there @ArnabSparkle! On mobile it’s highly dependent on how you are handling your input natively. What are you trying to bind since most keys are touch buttons? Are you using the old input system or the enhanced input system?
Hi @SupportiveEntity , I am using old input system. But any solution is okay.
Alright, so the info I have is split into two parts, one how you can change axis controls in the old input system, and two will be in relation to how this works for mobile if you’re also using the default hud.
So first a tutorial on adding action and axis mappings in the old input system:
Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.
Next, if you’re using the default HUD you’re kind of relegated to maintaining one instance of controls and passing though that. For example, the default HUD touch interface keeps it’s inputs in a location inaccessible to Blueprints as it’s an asset outside of them, so at runtime, this won’t be editable. (not that anyone would have a reason rebind the two sticks they give you but I mention it just in case)
So at the end of the day you will need at least one axis mapping that is hardcoded. It’s likely to remain the default gamepad movement ones associated. If you have to rebind these, you will have to handle the UI entirely by hand.