![]() ![]() getMousePos – updates our mouseX and mouseY variables with the current position of the mouse.Īll we have to do now is attach our event handlers to the events themselves.sketchpad_mouseMove – checks to see if the mouse button is currently down, and if so, draws something at the current location.sketchpad_mouseUp – simply de-registers the mouse click, so we know that the button is no longer being pressed. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |