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

Mouse bindings #379

Merged
merged 6 commits into from
Sep 30, 2022
Merged

Mouse bindings #379

merged 6 commits into from
Sep 30, 2022

Conversation

rfresh2
Copy link
Member

@rfresh2 rfresh2 commented Sep 10, 2022

Describe the pull

Add mouse key bindings for module toggle states. Bindings are limited to buttons that are not left or right click.

Describe how this pull is helpful

Mouse key bindings allow users to toggle modules without using their keyboard if they have a mouse with additional buttons.

Additional context

Existing or added bindings for keyboard bindings are not affected by this and are still allowed.

@ItCameFr0mMars
Copy link
Contributor

do mouse side buttons work?

@rfresh2
Copy link
Member Author

rfresh2 commented Sep 11, 2022

do mouse side buttons work?

yes, any mouse button except for right/left click.

Human-readable mouse names start with 1. Using this scheme aligns with what you'd see in RusherHack for example. To accomplish this, any raw mouse input that comes as an index we simply increment by 1.

I'm planning on PR'ing a hud module that shows all bindings, again like in Rusherhack. So this would trigger my OCD having those bind names not align between clients.
@Avanatiker Avanatiker added the enhancement New feature or request label Sep 29, 2022
also mousekey is concurrent and may change after first null check.
@Avanatiker
Copy link
Member

Thank you a lot for your fist contribution! Let me know your discord so i can give you the contributor role :)

@Avanatiker Avanatiker merged commit 9b36ff4 into lambda-client:master Sep 30, 2022
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 this pull request may close these issues.

3 participants