RE: sleeping



Hi, 

>I am writing a program to control two steppers. To control its speed, i would need to >sleep the function that moves them.

i have a similar problem, i'm doing a movement of a pixmap, but i want to slow it down, so that the image runs move smothly...

i made the signal connect for the mouse events and on the handler i made it sleep with the GTimer (glib), but the problem is that even putting it to sleep, it remembers the events, so if i go left, then right, then left, it always does this movements, but not synchronized with the mouse... is there some way to do this, or do i have to disconnect the signal while i put it to sleep?

Afonso



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]