Re: interrupable sleep

new topic     » goto parent     » topic index » view thread      » older message » newer message
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. sad

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu