Skip to content

Add toggle binds for duck and sprint#1889

Merged
Rainyan merged 4 commits into
NeotokyoRebuild:masterfrom
Rainyan:feat/toggle-duck-sprint
Apr 3, 2026
Merged

Add toggle binds for duck and sprint#1889
Rainyan merged 4 commits into
NeotokyoRebuild:masterfrom
Rainyan:feat/toggle-duck-sprint

Conversation

@Rainyan
Copy link
Copy Markdown
Member

@Rainyan Rainyan commented Mar 22, 2026

Description

Add keybinds for toggled (instead of held) duck and sprint inputs.

Toolchain

  • Windows MSVC VS2022

Linked Issues

Rainyan added 4 commits March 22, 2026 18:51
GetButtonCodeForBind returns the same code for both "+duck" and
"toggle_duck", which messes up the NeoUI bind display logic and has to
be handled separately.

To see the buggy behavior, comment out this commit and then:
- Bind "Duck (toggle)" to the same key as "Duck"
  - This causes "Duck" to correctly un-bind because of the overlapping
    bind
- Save changes & exit to NeoUI main menu
- Go back to NeoUI key binds options page
- See how "Duck" now incorrectly displays the "Duck (toggle)" bind
@Rainyan Rainyan requested a review from a team March 23, 2026 00:28
@DESTROYGIRL DESTROYGIRL requested a review from a team April 2, 2026 15:38
@DESTROYGIRL DESTROYGIRL added this to the Continued Development milestone Apr 2, 2026
@Rainyan Rainyan merged commit 810f3af into NeotokyoRebuild:master Apr 3, 2026
7 checks passed
@Rainyan Rainyan deleted the feat/toggle-duck-sprint branch April 3, 2026 15:13
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.

[FEATURE] Option for toggleable crouch and sprinting

3 participants