There's an easy way to answer these questions ("What information do
we have available to us for each keystroke event?")
Actually, that answers the question "If I use Carbon Events, what
information do I have available?"
There don't appear to be public APIs to distinguish left & right
keys, but I do have some Mac OS X games which do, presumably via the
HID. Whether or not this would work for X, I'm not sure.
WTF Carbon events.
Cocoa events actually give more info. I just assumed that they gave
the same events as Carbon events -- Cocoa events are what we are using.
See /System/Library/Frameworks/IOKit.framework/Versions/A/Headers/
hidsystem/IOLLEvent.h:
It looks like Carbon Events don't get passed the latter set of bits;
too bad there's not an example out there that just uses Cocoa events.
--
Ben Byer
CoreOS / BSD Technology Group, XDarwin maintainer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden