[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Check for a keypress
- From: Paul Merrell <marbux@...>
- Date: Fri, 29 Nov 2013 17:58:28 -0800
On Fri, Nov 29, 2013 at 4:41 PM, Jose Torre-Bueno <firstname.lastname@example.org> wrote:
> Is there a way from inside Lua to check whether any key has been pressed?
> io.read() will get a line from the console but if there is no input it pends
> waiting for input. I would like to be able to write a test that gets input
> if any is ready but would continue if there is none. It is not obvious to
> me if this can be done at all.
I don't think so. We had to implement in C the capability to read
input from the system's keyboard buffer when we added AutoReplace and
AutoCompletion features to NoteCase Pro.
[Notice not included in the above original message: The U.S. National
Security Agency neither confirms nor denies that it intercepted this