[REBOL] Re: kbhit() - up/down key events ?
From: arolls:bigpond:au at: 25-Jun-2001 0:53
> > Can you tell me if it is possible to
> > get up and down key events, "asynchronously"?
> The last keyboard I had that did this was on my Exidy Sorcerer
> back in the middle 1970s. On that machine you could write your
> own keyboard driver to `strobe' the key status, and detect _every_
> press and release of _every_ key.
> Very soon, however, this gave way to keyboards that had enough
> logic in them to only send pre-decoded keypress information (i.e.
> it would send you `A' rather than requiring you detect a shift
> key depression and a 'a' key depression followed by a release of
> each key), and since that time I don't know of many keyboard
> handlers (except those designed for piano keyboards) that send
> key-release information.
It should be possible to poll the keyboard to see
which keys are currently down. If this is done
regularly enough, then we could get the functionality
I want above.
How could action games like half-life work without