Open prisonerjohn opened 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.
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()
Comment by REAS Wednesday May 22, 2013 at 23:07 GMT
Done.
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.