chore: proper keybind handling and better input blocking system #53

Merged
UndercoverGoose merged 38 commits from chore/keybind into main 2025-11-22 03:34:47 +00:00
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
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cigarette/client!53
No description provided.