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

[request enhancement] mouse button events #2401

Open
atesin opened this issue Dec 9, 2023 · 3 comments
Open

[request enhancement] mouse button events #2401

atesin opened this issue Dec 9, 2023 · 3 comments

Comments

@atesin
Copy link

atesin commented Dec 9, 2023

hi... currently, mouse() function only tells if mouse buttons are pressed or not, raw... i was trying to emulate mouse button/touch events, with each 3 button, like:

  • click
  • double click
  • drag (maybe)
  • triple click (maybe)
  • more?

these events could be dependent on host system settings (double click velocity, tap and hold dragging for touch devices, tap 2 fingers, etc)

i am trying to figure out a way/function to emulate these events, but i see could be long and complicated code, and will not be system dependent

in the meanwhile, does enybody know some snippet code/function to emulate these events?.. thanks

@atesin
Copy link
Author

atesin commented Dec 22, 2023

hi .... maybe someone already had developed a library for this... but the current website state makes difficult to search for it, there are plenty of reports/suggestions about this, like #2415 and #2416 .... maybe this lib could be easily found by searching carts for "mouse"

i dont want to reinvent the wheel either

@joshgoebel
Copy link
Collaborator

IMHO definitely like something that would need to be a library... the core built-ins are largely about interfacing directly with the hardware when it comes to input. I think this is simply out of scope.

@potato25
Copy link

I just would it to be able to identify mouse click and press , like button and button press. Double click would help too 🤔

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

No branches or pull requests

3 participants