-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce con_enable 1 and multiple fixes for keybind handling #589
Enforce con_enable 1 and multiple fixes for keybind handling #589
Conversation
I'm having trouble saving the preference, so I can't really test the change. Using the legacy menu, I can save the "developer console" setting correctly however. Example: bind.webm |
@Rainyan It seems like it failed because 'q' was also used for lean left. Guess that's also why the legacy menu discards the other bind since it seems the behavior for GetButtonCodeForBind is 1:1 and can't handle more. |
That was the other thing, but my main problem was being unable to turn off developer mode in the new menu. |
@Rainyan I was able to turn it off... but then I checked again and realised the main issue wasn't fixed anyway. |
428d831
to
b6088b3
Compare
@Rainyan I've changed the description + title to reflect the way the change of the fix is done now. Basically the game will try to enforce |
* Instead always enforce the "legacy" toggleconsole, because internally it requires con_enable to be set anyway, although the legacy menu toggles this. * Basically means the support for legacy menu on this is an unsupported thing anyway * Write the command file on save * Fix attempts to write empty keys * Unbind duplicate key * fixes NeotokyoRebuild#586
b6088b3
to
d08756d
Compare
I've also gone ahead and do the duplicate keybind unbinding enforcement also. |
This seems to fix my previous inability to toggle the developer console setting in the new menu. However I'm a bit unclear as to what the Also worth noting that the default backtick bind does not work for some keyboard layouts, for example for the nordic kb layout it's impossible to press the |
@Rainyan It's mostly to try to enforce that bind to route to the NeoToggleConsole function. I think this solution would be fine for now as a quickfix but fixing it for other layouts/trying to check console can be done as a separate PR. |
Lets open an issue and merge this in then |
Description
Toolchain
Linked Issues