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.
IndexProgramming Questions & HelpSyntax Questions › Interaction with mouse > Beware!
Page Index Toggle Pages: 1
Interaction with mouse > Beware! (Read 312 times)
Interaction with mouse > Beware!
Apr 12th, 2006, 1:13pm
 
I see people all around using right and center mousebuttons alot.. How do you suppose mac-people will interact with center and right mousebutton? Tongue
For those of you that don't know, mac users only have one mousebutton.

to get around this problem, you only have to use a keycheck instead. i.e:
Code:

void mousePressed(){
if(keyPressed){
if(keyCode == SHIFT){
// clear screen or something
}else if(keyCode == CONTROL){
// reset objects or something
}
}
}


also look into this, if you want to check multiple keypresses at once.
http://www.processinghacks.com/hacks/multiplekeys

-seltar
Page Index Toggle Pages: 1