Hey great console, I very much appreciate the work!
One issue with using the static keycodes in code is that they can be in wildly different places on different keyboard layouts.
On my finnish keyboard for example the console toggle key is "ö". I have run into this issue in hundreds of different games that hardcode their input.
Anyways, I don't want to open a pull request for 3 lines of code so I will just tell you what I did for my version.
private void CheckInput(InputEventKey key){
if (!key.Pressed) return;
switch (key.Keycode){
case Key.Quoteleft:
ToggleConsole();
break;
case Key.Escape:
if (!Visible) return;
ToggleConsole();
break;
}
// This line
if (Input.IsActionPressed("ToggleConsole")) {
ToggleConsole();
}
}
Hey great console, I very much appreciate the work! One issue with using the static keycodes in code is that they can be in wildly different places on different keyboard layouts. On my finnish keyboard for example the console toggle key is "ö". I have run into this issue in hundreds of different games that hardcode their input.
Anyways, I don't want to open a pull request for 3 lines of code so I will just tell you what I did for my version.
DeveloperConsoleUI.cs | private void CheckInput(InputEventKey key)