Wednesday, April 3, 2013

Re: Get mouse position in Canvas on keyPress?

Missed the part that you want the mouse position in a canvas. 

Take a look at http://www.html5canvastutorials.com/advanced/html5-canvas-mouse-coordinates/ 

You could easily transfer this to GWT and on a key event use the current mouse position you have saved in your app by tracking the mouse movement on the canvas element.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment