nanogui: Difficulty Using GrInjectKeyboardEvent()


Previous by date: 28 Aug 2008 15:49:13 -0000 Re: Difficulty Using GrInjectKeyboardEvent(), Greg Haerr
Next by date: 28 Aug 2008 15:49:13 -0000 Re: Difficulty Using GrInjectKeyboardEvent(), Greg Haerr
Previous in thread: 28 Aug 2008 15:49:13 -0000 Re: Difficulty Using GrInjectKeyboardEvent(), Greg Haerr
Next in thread: 28 Aug 2008 15:49:13 -0000 Re: Difficulty Using GrInjectKeyboardEvent(), Greg Haerr

Subject: RE: [nanogui] Difficulty Using GrInjectKeyboardEvent()
From: "Gil Glass" ####@####.####
Date: 28 Aug 2008 15:49:13 -0000
Message-Id: <6ECE57DF49376146B91A92A3C37EFC0E069A4A02@SJEXCH03.ds.jdsu.net>

Greg,

Thank you for the prompt reply.  I'll have a look at the code as you
suggested but, off the top of your head, do you know whether the fact
that our system has no mouse makes a difference?

Cheers,
Gil

-----Original Message-----
From: Greg Haerr ####@####.#### 
Sent: Wednesday, August 27, 2008 6:58 PM
To: Gil Glass; ####@####.####
Subject: Re: [nanogui] Difficulty Using GrInjectKeyboardEvent()

> GrInjectKeyboardEvent(GR_ROOT_WINDOW_ID, MWKEY_SYSREQ, 0, 0, GR_TRUE);

Take a close look at the code in
nanox/srvevent.c::GsDeliverKeyboardEvent,
you'll see that there are issues with whether the mouse is in the
window,
and focus issues that may cause the event to be discarded.

> Finally, is there another way to post events to the queue is
GrInjectKeyboardEvent() does not work the way I think it should?

 
There's no way currently to post arbitrary events to the queue.
Mouse events can be generated with GrInjectPointerEvent.
If you want arbitrary events, you'll probably have to call
something like nanox/srvevent.c::GsDeliverGeneralEvent(),
which isn't meant to be called by applications but is accessible
when LINK_APP_INTO_SERVER.

Regards,

Greg

Previous by date: 28 Aug 2008 15:49:13 -0000 Re: Difficulty Using GrInjectKeyboardEvent(), Greg Haerr
Next by date: 28 Aug 2008 15:49:13 -0000 Re: Difficulty Using GrInjectKeyboardEvent(), Greg Haerr
Previous in thread: 28 Aug 2008 15:49:13 -0000 Re: Difficulty Using GrInjectKeyboardEvent(), Greg Haerr
Next in thread: 28 Aug 2008 15:49:13 -0000 Re: Difficulty Using GrInjectKeyboardEvent(), Greg Haerr


Powered by ezmlm-browse 0.20.