Controls Remapping


Date: 10/7/2022

Controls Remapping

Control Remapping was something that was incredibly difficult to get started at first since I wasn't used to the new input system Unity uses. Therefore, when trying to implement control remapping it took a significant amount of time on research and trial and error alone. I first figured out that since the controls we want remappable aren't composite inputs that it would simplify the process for remapping. Then from there, I determined that I just need to build functionality to read input from the player when they press the rebind button. Reading in the input, but mapping it into our current action map was much more work. We applied a constraint to the mouse so that mouse move input was not processed. Then, whichever key was pressed next would be the new binding for the selected action. We passed the input into the PlayerInput class and then from there into our InputManager. The next problem to fix would be to make the settings persistent and reset them as well. The code is there, just there are some roadblocks currently.

Leave a comment

Log in with itch.io to leave a comment.