- Home /
Question by
Celvaa · Sep 19, 2017 at 07:19 AM ·
inputbuttoninputmanagerkeyboard input
Set Alt Positive/Negative Button input during runtime
I've looked around to the best of my ability, but I simply cannot find anything online that lists how to assign secondary/alternate buttons for inputs via code at runtime. It can be done at startup of a game build and can be changed from the editor's Input Manager, but I need something that can be used at runtime. I know it can be done because i have seen a custom input interface online that allowed the player to assign a primary and alternate input for a selected button/action, but i would rather not pay just to strip a couple lines of code from someone else's work. If anyone could give me a solid answer it would be greatly appreciated.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612135149im_/https://answers.unity.com/themes/thub/images/avi.jpg)