We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
mouse wheel (Read 1532 times)
mouse wheel
Jul 9th, 2007, 3:05pm
 
the only infos i have found about using the mouse wheel is this:


http://processing.org/discourse/yabb/YaBB.cgi?board=Syntax;action=display;num=1048605086


are there any newer examples or approaches?

thanx,
sebastian.
Re: mouse wheel
Reply #1 - Jul 10th, 2007, 8:22pm
 
something like this should work:

Code:


void setup() {
size(100,100);
frame.addMouseWheelListener(
new MouseWheelListener()
{
void mouseWheelMoved (MouseWheelEvent e)
{
println( e.toString() );
}

}
);
}
void draw() {
}

Page Index Toggle Pages: 1