mousePressed not updating in while loop

no WHILE, very good
what is a ?

if( waiting state )

can you share your working code?