question: public void hold ( int mask , int duration ) throws InterruptedException { controller . mousePress ( mask ) ; if ( duration >= 0 ) { Thread . sleep ( duration ) ; controller . mouseRelease ( mask ) ; } }
target:  Hold mouse for certain duration