chore: proper keybind handling and better input blocking system #53
UndercoverGoose
commented 2025-10-08 14:27:10 +00:00
(Migrated from github.com)
- Adds mixins to process key/mouse inputs right before Minecraft handles them
- Adds InputBlocker to cancel the events received by the mixin when activated
- Adds TickHelper (should probably be TickScheduler?) for scheduling events to occur after an amount of ticks
- Wraps the native KeyBinding to allow for modules to determine the physical state of the key
- Adds methods to control virtual key state even while physical inputs are blocked:
- Sending a single press
- Holding or releasing the key
- Holding or releasing for a specific number of ticks
- Updates KeybindWidget and modules that reference it to use this system
- Updates modules that reference KeyBindingAccessor or KeyboardInputMixin for old input blocking
- Adds mixins to process key/mouse inputs right before Minecraft handles them
- Adds InputBlocker to cancel the events received by the mixin when activated
- Adds TickHelper (should probably be TickScheduler?) for scheduling events to occur after an amount of ticks
- Wraps the native KeyBinding to allow for modules to determine the physical state of the key
- Adds methods to control virtual key state even while physical inputs are blocked:
- Sending a single press
- Holding or releasing the key
- Holding or releasing for a specific number of ticks
- Updates KeybindWidget and modules that reference it to use this system
- Updates modules that reference KeyBindingAccessor or KeyboardInputMixin for old input blocking
No reviewers
Labels
No labels
invalid
invalid: duplicate
invalid: outdated client
needs investigation
plan: never
scope: bedwars
scope: combat
scope: game detection
scope: gui/config
scope: keybinds
scope: language
scope: murder mystery
scope: skyblock
scope: zombies
type: ban
type: bug
type: chore
type: crash
type: docs
type: experiment
type: feature
type: flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cigarette/client!53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/keybind"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?