[Haskell-cafe] Suggestion: define a standard keyboard codes library?

Peter Verswyvelen bugfact at gmail.com
Wed Aug 26 13:47:38 EDT 2009

I would already be happy with a low level library that holds the union of
all keys, assigning them unique codes. So you would have keys like Apple,
Amiga, Windows, Start, Popup, LeftControl, RightControl, etc... No mapping
is done at the low level.
Then one would need an OS dependent interface to figure out which keys are

Which keyboard bindings (like CTRL+C or CTRL+INSERT) are assigned to which
user interface commands is a high level binding, which in the perfect UI is
configurable anyway, although the OS dependent interface should provide a
lot of defaults (again different on each system)

However I only have experience with Windows, Amiga, a bit of OSX and tiny
bit of Linux, so I don't know all the details of all esoteric systems.

For now I will just use the bindings in the GLFW package.

On Wed, Aug 26, 2009 at 3:34 PM, Marc Weber <marco-oweber at gmx.de> wrote:

> Excerpts from Peter Verswyvelen's message of Wed Aug 26 12:15:14 +0200
> 2009:
> > Maybe it would be nice to agree on a standard datatype for keys? This
> might
> > also include digital buttons on a joystick, etc...
> The synergy project (sourceforge) already does some mapping from Windows
> <-> Linux <-> Mac AFAIK.
> It forwards key input to the other system over network.
> This could be a source of additional information. However I haven't
> looked at the code yet.
> Sincerly
> Marc Weber
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090826/51173f93/attachment.html

More information about the Haskell-Cafe mailing list