[racket-dev] multiple key-press

From: YC (yinso.chen at gmail.com)
Date: Thu Jul 22 18:01:54 EDT 2010

On Thu, Jul 22, 2010 at 6:43 AM, Jay McCarthy <jay.mccarthy at gmail.com>wrote:

> On Thu, Jul 22, 2010 at 7:38 AM, Shriram Krishnamurthi <sk at cs.brown.edu>
> wrote:
> >> As far as I know, at the lowest level there is no "multiple key press"
> >> event even in the OS.
> >
>

Not that there is a multiple key press event in OS, but below are some
potential solutions/examples in other languages:

Here's a potential solution in C# describing looking up keyboard states via
kernel32.dll - not sure whether it will easily be applicable/ported in your
scenario.

http://stackoverflow.com/questions/2686019/multiple-key-presses-doing-different-events-in-c

Processing also appear to handle multiple keypress (code):

http://wiki.processing.org/index.php?title=Keep_track_of_multiple_key_presses

Here's one demo in flash with WASD - but did not show firing:

http://www.freeactionscript.com/2009/02/multiple-key-press-detection/

Cheers,
yc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20100722/791acbea/attachment.html>

Posted on the dev mailing list.