Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Custom Keybinds - Brandon Davis

This week when working on the customizable keybinds, I ran into a couple of problems. First when I was overwriting the keybinds, they would not work and instead the new keybinds would display 'None'.  Second when trying to overwrite the keybinds I noticed that all of my binds for that input were being erased so if there were 3 bindings for that input then all 3 would be erased. I was mistakenly erasing all of the binds instead of just one and once I realized that it was an easy fix. So as you can see from the screenshots, I was mistakenly looping through all of the mappings and removing them, but I still couldn't figure out the 'None' problem. Turns out when adding a new mapping the default name was None when I should have been passing in the current keybind name.








To prevent it from deleting all of the mappings I simply only deleted the one in the first index and that solved my problems.


Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.