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

feat(mouse button): Allow to specify button option for realMouseDown and realMouseUp #201

Merged
merged 1 commit into from
Dec 27, 2021

Conversation

Andarist
Copy link
Collaborator

@Andarist Andarist commented Dec 2, 2021

No description provided.

@@ -42,9 +48,9 @@ export async function realMouseDown(
x,
y,
clickCount: 1,
buttons: 1,
buttons: mouseButtonNumbers[options.button ?? "left"],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw. configuring buttons is not necessary unless we have additional buttons pressed down. It's not possible to configure this right now so this could be omitted - but I'd like to add that feature in the future, so it's convenient to leave this here for the time being.

@Andarist
Copy link
Collaborator Author

@dmtrKovalenko friendly 🏓

@dmtrKovalenko dmtrKovalenko merged commit b05948e into develop Dec 27, 2021
@dmtrKovalenko dmtrKovalenko deleted the support-button-option branch December 27, 2021 18:12
dmtrKovalenko pushed a commit that referenced this pull request Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants