prisonerjohn / processing-web

0 stars 0 forks source link

[CLOSED] add documentation for mouseWheel() #109

Open prisonerjohn opened 10 years ago

prisonerjohn commented 10 years ago

Issue by benfry Wednesday May 01, 2013 at 02:40 GMT Originally opened as https://github.com/processing/processing-web/issues/109


This may be just for advanced users, but we've got:

void mouseWheel(MouseEvent event) { println(event.getAmount()); }

Where event.getAmount() returns "negative values if the mouse wheel was rotated up or away from the user" and positive in the other direction. On OS X with "natural" scrolling enabled, the values are opposite.

prisonerjohn commented 10 years ago

Comment by benfry Wednesday May 01, 2013 at 02:42 GMT


Java reference: http://docs.oracle.com/javase/6/docs/api/java/awt/event/MouseWheelEvent.html#getWheelRotation()

prisonerjohn commented 10 years ago

Comment by REAS Wednesday May 22, 2013 at 23:07 GMT


Done.