AnyRPGCore
AnyRPGCore copied to clipboard
Key binding problem
Describe the bug Firstly HI!, I love what you have done here! Secondly, I'm French so I'm using an azerty keyboard so I need to change my player control in the key binding panel. when I did that a problem appeared. I have the old key that remains tied to player movement
Solution I found the solution after a little struggle with KeyBindManager.cs and other files. The problem comes from the instantiation of the keys bound to the keyboard.
For example we have this:
InitializeKey("FORWARD", KeyCode.W, KeyCode.W, KeyCode.W, "Forward", KeyBindType.Normal);
so we should have this:
InitializeKey("FORWARD", KeyCode.W, KeyCode.None, KeyCode.None, "Forward", KeyBindType.Normal);