In my program, i've coded the mouse function, but it works after a while. I've coded that the left mouse button zoom in the screen, but it wait the redisplay to zoom in. Thats not what i want to do, i want that as soon as the user click the left button it zooms in.
In the idle function i read a matrix on a socket but need the socket to be non-blocking, so i loop in there until i get a valid matrix on the socket. but it waits until i get a valid matrix to zoom in.
so what do i have to do to make sure it performs the mouse function as soon as the user clicks the mouse button?