On Wed, Jun 24, 2009 at 2:06 PM, Michael van der Gulik
<mikevdg@gmail.com> wrote:
Hi all.
I'm writing my own EventSensor class (as part of Subcanvas: http://gulik.pbwiki.com/Canvas) and I'm looking at what the VM is doing.
When I press and release key under a recent Linux VM, I get three events:
#(2 512613 53 1 8 0 0 0)
#(2 512613 53 0 8 0 0 0)
#(2 512664 53 2 8 0 0 0)
The fields are (for those that don't already know this):
1: type (2=keyboard),
2: timestamp,
3: character in Mac Roman encoding,
4: key press/release (0=character, 1=press, 2=release)
5: modifiers (1=shift, 2=ctrl, 4=mac option, 8=cmd/alt)