[Xquartz-dev] Modifier key presses?
bbyer at apple.com
Wed Dec 5 18:27:21 PST 2007
On Dec 5, 2007, at 3:39 PM, Derek Fawcus wrote:
> I seem to recall someone mentioning that it is not possible to see
> the actual press and release of modifiers, and as such one has to
> infer the presses from the changes to modifer flags.
> However I knocked up a simple app while working on something else,
> which is currently just looking at key press/release, button press/
> and modifer changes.
> It sees a keycode with each modifier change. Filtered output below:
> Flag Chg 0x00020102;56; Shft LShft
> Flag Chg 0x00000100;56;
> Flag Chg 0x00020104;60; Shft RShft
> Flag Chg 0x00000100;60;
> Flag Chg 0x00100108;55; Cmd LCmd
> Flag Chg 0x00000100;55;
> Flag Chg 0x00100110;54; Cmd RCmd
> Flag Chg 0x00000100;54;
So, you're receiving some sort of keypress / keyrelease event with
those keycodes (56, 60, 55, 54)? Which API is this ?
CoreOS / BSD Technology Group, XDarwin maintainer
More information about the Xquartz-dev