Re: interrupable sleep
- Posted by mattlewis (admin) Jan 02, 2013
- 1099 views
SnakeCharmer said...
ghaberek said...
SnakeCharmer said...
By the way, function isInterrupted has to return TRUE, if the castor of a mouse was turned. How to do it? Perhaps to reconstruct function?
I have no idea what you mean by this.
I mean rotation of wheel between mouse's buttons. Sorry for my poor english.
What sort of a program is this? Assuming you're using some GUI library, then I'd say that you'd set a timer or something, and invalidate or destroy it if you get a scroll wheel event in the meantime. If this is a console type program, that isn't using some event system, then you'll just have to periodically poll the scroll wheel.
Matt