Skip to content
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

Keybind Improvements #80

Merged
merged 1 commit into from Feb 5, 2021
Merged

Keybind Improvements #80

merged 1 commit into from Feb 5, 2021

Conversation

apple1417
Copy link
Contributor

Adds fields Keybind.IsRebindable and Keybind.IsHidden. Binds which are not rebindable still show up in the menu so users can tell what they are, but can't be changed and aren't added to the settings file. Binds which are hidden don't appear in the menu, but are still in the settings file (unless they're also unrebindable). Binds with either flag will continue reviving events as normal.

Adds the Keybind.OnPress callback. If present, it will be called instead of mod.GameInputPressed. Has an optional input event argument in the exact same way as mod.GameInputPressed.

add `IsRebindable` and `IsHidden` fields, along with per-bind callback `OnPress`
@apple1417 apple1417 merged commit d067211 into bl-sdk:master Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant