Re: libpfutil KeyRelease

New Message Reply Date view Thread view Subject view Author view

Andrew Shein (ashein++at++orac.boston.sgi.com)
Mon, 10 Feb 1997 19:56:19 -0500


On Feb 10, 4:19pm, Neil Matson wrote:
> Subject: libpfutil KeyRelease
>
> Is there an easy way in PF/OGL 2.0.X to see if a key is being held down? I
> remember in skyfly the technique was to set/unset a table (of key states)
> based on a Keypress or KeyRelease event. This necessitated turning off the
> key repeat feature. Looking through the libpfutil source it seems to me that
> the only table kept related to this is with a Keypress. It does not seem to
> do anything meaningful with the KeyRelease. Do I need to do my own X event
> handling or am I missing something? Sorry if this has been addressed
> before.
>
   I don't know about every key (because I havn't looked) but I used

static void processEventsInput( pfuEventStream *events )
{
   int i;
   int j;
   int key;
   int dev;
   int val;
   int numDevs;
   pfCoord view; // new viewpoint

   numDevs = events->numDevs;

   if( events->buttonFlags & (PFUDEV_MOD_SHIFT) )
   {
      Shared->pick_mode = TRUE;
   }
   else
   {
      Shared->pick_mode = FALSE;
      Shared->picked_dcs = NULL;
   }

........

   To change state when SHIFT is down.

> Also, when is the non-beta version of 2.2 being released?

    I don't know such things :(

>
> Thanks,
>
> Neil
> matson++at++phoebus.ncsc.navy.mil
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Neil Matson

-- 
Andrew Shein   SE Stout               email: ashein++at++boston.sgi.com
Silicon Graphics Inc.                 phone: (508) 562 - 4800
1 Cabot Road                            fax: (508) 562 - 4755
Hudson, MA 01749                      vmail: 59688
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:37 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.