How to update processing while in a loop?
              in 
             Programming Questions 
              •  
              2 years ago    
            
 
           
             Say I'm in a while loop doing something. I want processing to update it's keyboard and mouse status, and possibly update the drawing too while I'm in the loop. Is there any method that processing uses to update itself? I want to be able to call that method from within a loop. The reason I want to do this, is so that I can have something looping until a key is pressed, using something like while(key != 'A'); But the keyboard won't update on its own accord. I want it to look more like this:
            
            
 
           
 
            
           - while(key != 'A')
 - {
 -       updateKeyboard();
 - }
 
 
              
              1  
            
 
            