Keybind overhaul
Tap to sprint
The Sprint (hold) key should allow vanilla-style tapping to start sprinting, but stopping the sprint after slowing down.
This could be implemented by changing the title to Sprint (hold / tap), where hold and tap are clickable, and the selected option is underlined.
Modifier combo support
When the hold keybinding is set to a modifier key (Ctrl, Shift, Alt), it should be possible to set the toggle keybinding to a modifier combo.
For ex. sneaking could be set to Ctrl hold, Ctrl+Y toggle. Holding Ctrl would start sneaking, then finishing the combo by pressing Y would turn on the toggle. Then:
- If
Ctrlhas not been released yet, pressingYagain would cancel the toggle - After releasing
Ctrl, tapping it once or pressing the wholeCtrl+Ycombo would cancel the toggle
Additional toggle modes
Sprinting and sneaking should have additional ways to toggle them. The toggle keybinds should have a drop-down menu with the following options:
- Separate key binding
- Tap [Sprint/Sneak] quickly to toggle (#43)
- Tap [Sprint/Sneak] twice to toggle
Choosing anything other than Separate key binding would disable the keybind element, and internally unset the key. Choosing Separate key binding again would re-enable and immediately focus the keybind element.
- [x] Tap to sprint - 9962a390b56870879f70cd295ad7251eeb69d6d3
- [x] Modifier combo support - 4d0944b0389fbeb720114e978fb4eba30bb62041
- [ ] Additional toggle modes - TODO
The modifier combos actually work really well, for release 3.0.0 that'll be enough and I'll test changing the default keybindings to modifier combos.
Any chance of this still happening? A sprint toggle is fine in single-player but on servers where the first press might not register immediately, the vanilla behavior is much better IMO.
What do you mean, vanilla-style tap to sprint was implemented 6 months ago.
In vanilla pressing the sprint key again after already sprinting does nothing. This makes it "fine" to spam the key. When sprinting up mountains this becomes essential as it's pretty annoying to get set back to walking when jumping just that split second too late.
I've not found a way to replicate this behavior using the mod, but still want to use some of the other features it provides.
Nothing mentioned in this issue would solve that problem. I don't understand how spamming sprint key does anything different than holding/toggling the sprint key with the mod installed, the mod locks in the sprint state as soon as the sprinting conditions allow it (i.e. no horizontal collision).
Oh, my bad seems I didn't understand the issue description correctly. I'll create a separate issue explaining it in more detail.
Closing in favor of https://github.com/chylex/Better-Controls.