From: John Kelso (kelso++at++nist.gov)
Date: 03/17/2004 06:09:56
Hi,
This might be overkill, but the DTK package,
diversetoolkit.sourceforge.net, queues both keypresses and releases when
the cursor is inside any graphics window. You do not need to use DIVERSE
graphics in order to use the toolkit. It comes with an example of how to
read the keyboard.
Its code is based on X events, which is another way to do it directly.
DTK is open source so you might see some code that'll do what you need.
Use Performer to provide the window IDs.
I hope this helps,
-John
On Wed, 17 Mar 2004, Dimi wrote:
> Hi,
> I have send a question about Key releases and Performer many times in
> the past without any response.
> There is no way to detect KeyReleases in Perfromer using the pfutility
> library,
> just KeyPresses get detected.
> I have verified this by looking into the source code of input.c in
> /usr/share/performer.
>
> Dimi
>
> From: "Gordon Tomlinson" <Gordon.Tomlinson++at++warhammeronline.com>
> Date: Tue, 16 Mar 2004 11:51:09 -0000
> Subject: RE: [info-performer] keyboard in performer ?
>
> This is a multi-part message in MIME format.
>
> ------_=_NextPart_001_01C40B4C.F8EE1D92
> Content-Type: text/plain;
> charset="us-ascii"
> Content-Transfer-Encoding: quoted-printable
>
> Have you looked at the Perfly source it has it ALL in there
>
> _____ =20
>
> From: stephane adam [mailto:stephane.adam++at++tiscali.fr]=20
> Sent: 16 March 2004 10:58
> To: info-performer++at++sgi.com
> Subject: [info-performer] keyboard in performer ?
>
>
> Hello,
> I'm trying to move in a performer 3D scene with the keyboard. But the
> keyboard's events are only generates about each seconde.=20
> Is it possible to have more events ?=20
> Is it possible to have events when the key is pressed and released ?
> thanks
>
> --
> Dimi Christopoulos {christop++at++fhw.gr}
> VR Software Engineer
> Foundation of the Hellenic World
> Athens - Greece
>
>
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>
>
>
This archive was generated by hypermail 2b29 : Wed Mar 17 2004 - 06:37:31 PST