AnyRPGCore icon indicating copy to clipboard operation
AnyRPGCore copied to clipboard

Key binding problem

Open AlexandreGheraibia opened this issue 2 years ago • 0 comments

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);

AlexandreGheraibia avatar Jan 01 '23 18:01 AlexandreGheraibia