Re: Keyboarding Assistance

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

Derek Parnell wrote:
> 
> Robert Craig wrote:
>  
> > I'm not sure exactly what you want ...
> 
> The documentation for get_key() says it doesn't wait for the user and returns
> -1 if there is no key in the buffer. However, this doesn't seem to be the case
> (Windows XP SP2). It blocks, waiting for keyboard input. So the original
> poster
> might wondering why there is a 'pause' instead of just returning -1?

That wasn't the case for my simple test programs. Except for a delay before the
key started repeating (which is what I think the original poster was talking
about) the routine returned immediately. (Windows XP Pro SP2, exwc.)


--
"Any programming problem can be solved by adding a level of indirection."
--anonymous
"Any performance problem can be solved by removing a level of indirection."
--M. Haertel
j.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu