Skip to content

KeyBinding flag #43

@anhcraft

Description

@anhcraft

KeyBinding flag is an option to control how the keybind should behave in client-side.

1. Capture Enforcement

  • With enforced mode, if a key is already-registered by Minecraft or another mod, its state change can still be captured. No client-side actions will be cancelled.

2. Editable

  • This property permits editing a key-binding.
  • If there is a conflict and the key-bind is not editable, a notice may be sent to the server. However, there is no state update will be sent.

3. Optimized State Update

  • In optimized mode, a state update is sent if and only if the isPressed property changes
  • This mode helps improving performance by reducing an amount of packets

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions