Robot class for mouse control need help understanding the method page
              in 
             Programming Questions 
              •  
              10 months ago    
            
 
           
             I am doing a sketch that controls the mouse on my pc.
            
            
             I have the mouse moving fine with 
            
            
             robby.mouseMove(xx, yy);
            
            
             I need to be able to do a left mouse click, left double click, and left mouse drag as well but I am confused as to how to implement the mousePress and mouseRelease commands
            
            
             The method sheet reads:
            
            
mousePresspublic void mousePress(int buttons)
- Presses one or more mouse buttons. The mouse buttons should be released using the
 mouseReleasemethod.
- Parameters:
 buttons- the Button mask; a combination of one or more of these flags:
InputEvent.BUTTON1_MASKInputEvent.BUTTON2_MASKInputEvent.BUTTON3_MASK- Throws:
 IllegalArgumentException- if the button mask is not a valid combination- See Also:
 mouseRelease(int)
mouseRelease
public void mouseRelease(int buttons)
- Releases one or more mouse buttons.
 
- Parameters:
 buttons- the Button mask; a combination of one or more of these flags:
InputEvent.BUTTON1_MASKInputEvent.BUTTON2_MASKInputEvent.BUTTON3_MASK- Throws:
 IllegalArgumentException- if the button mask is not a valid combination- See Also:
 mousePress(int)
- 
               
- I am new to this and don't understand the terminology so terms like MASK and FLAGS probably are the answer to my question but I don't know what they mean.
 
 - Can someone help??? I did not see anything on the forum about dealing with mouse clicks....only mouse movement so this might be a good thread for other newbies as well..
 
 
              
              1  
            
 
            