Most of the event handling methods have two signatures, one without a parameter and one with a single processing.event.Event class parameter.
The code below shows both forms, you can use either one (but not both together). The advantage of using method signature 2 is that the Event object has additional methods that you can call e.g. event.isShiftDown() returns true if the shift key is being held down when the mouse button is pressed.
In the code below only method 2 is being called and method 1 is ignored, as I said use one or the other.
Answers
I guess that is very similar to mouseWheel(), which doesn't have a no parameter overloaded form:
http://processing.org/reference/mouseWheel_.html
Most of the event handling methods have two signatures, one without a parameter and one with a single
processing.event.Event
class parameter.The code below shows both forms, you can use either one (but not both together). The advantage of using method signature 2 is that the Event object has additional methods that you can call e.g.
event.isShiftDown()
returns true if the shift key is being held down when the mouse button is pressed.In the code below only method 2 is being called and method 1 is ignored, as I said use one or the other.
To find out what other methods are available then look at the source code for Event, MouseEvent and KeyEvent
Well, good to know : ) Thanks!