Skip to content

How to Get Mouse Coordinates on Stage and Its Speed for Extensions?? #1714

Closed Answered by David-Orangemoon
hammouda101010 asked this question in Q&A
Discussion options

You must be logged in to vote
vm.renderer.canvas.addEventListener("mousemove",()=>{/*eventCode*/});
vm.renderer.canvas.addEventListener("mouseover",()=>{/*eventCode*/});

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hammouda101010
Comment options

Answer selected by hammouda101010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants