How to Get Mouse Coordinates on Stage and Its Speed for Extensions?? #1714
-
i dont think there is an extension for this. but i need a way to fetch the mouse cords from the stage and convert it into speed. is there a way to fetch something like this? |
Beta Was this translation helpful? Give feedback.
Answered by
David-Orangemoon
Oct 8, 2024
Replies: 1 comment 1 reply
-
vm.renderer.canvas.addEventListener("mousemove",()=>{/*eventCode*/});
vm.renderer.canvas.addEventListener("mouseover",()=>{/*eventCode*/}); https://developer.mozilla.org/en-US/docs/Web/API/Element/mousemove_event |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hammouda101010
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://developer.mozilla.org/en-US/docs/Web/API/Element/mousemove_event
https://developer.mozilla.org/en-US/docs/Web/API/Element/mouseover_event
Here are the docs for those events.