Closed Paaskehare closed 12 years ago
Right now, just make your own bindings to detect clicks with window.addEventListener("eventname", function)
The only thing jaws currently provides is jaws.mouse_x and jaws.mouse_y which is the mouse pointers position inside the canvas (and not the browser window).
that's:
jaws.mouse_x
jaws.mouse_y
Very cool, I couldn't find those in the documentation though, but thank you very much :-)
good find, documented them @ http://jawsjs.com/docs/symbols/jaws.html
Hi, I really liked the examples and the simple documentation provided for this js game library, but I couldn't seem to find any subject regarding mouse bindings. In the game I intend to make I want to make it react on mouse events, both when clicking and moving the mouse. How would I go about doing this?
Thanks in advance.