Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyBinding flag #43

Open
anhcraft opened this issue Feb 4, 2023 · 0 comments
Open

KeyBinding flag #43

anhcraft opened this issue Feb 4, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@anhcraft
Copy link
Member

anhcraft commented Feb 4, 2023

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
@anhcraft anhcraft added the enhancement New feature or request label Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant