nanogui: Difficulty Using GrInjectKeyboardEvent()
Subject:
RE: [nanogui] Difficulty Using GrInjectKeyboardEvent()
From:
"Gil Glass" ####@####.####
Date:
28 Aug 2008 17:06:32 -0000
Message-Id: <6ECE57DF49376146B91A92A3C37EFC0E069A4B34@SJEXCH03.ds.jdsu.net>
Using debug messages, I've determined that the event IS being posted.
That is, execution of GsDeliverKeyboardEvent() reaches the point where
the event structure, ep, is populated. Therefore, it is not discarding
the events.
What appears to be happening is that the keyboard events that I inject
using GrInjectKeyboardEvent() are being queued somewhere. Once an
actual key is pressed, that keypress is recognized and then,
subsequently, all those queued events are "unleashed" and
GrGetNextEvent() unblocks one time for each event. It's almost as if
there's something about a real keypress that says
1. create the keyboard event,
2. queue it up, AND
3. send it on to clients that are selecting on the event.
Using GrInjectKeyboardEvent() only does the first two things.
Cheers,
Gil
-----Original Message-----
From: Greg Haerr ####@####.####
Sent: Thursday, August 28, 2008 12:21 PM
To: Gil Glass; ####@####.####
Subject: Re: [nanogui] Difficulty Using GrInjectKeyboardEvent()
> off the top of your head, do you know whether the fact
that our system has no mouse makes a difference?
Shouldn't matter