John C Vanderburgh (jvanderb++at++afit.af.mil)
Mon, 24 Oct 1994 13:23:09 -0400
.
.
.
pfuEvent *User_Input;
int Device;
int Value;
//----------------------
// Process user-input:
//----------------------
pfuGetEvents (User_Input);
for (i = 0; i < User_Input->numDevs; i++)
{
Device = User_Input->devQ[i];
Value = User_Input->devVal[i];
switch (Device)
{
case PFUDEV_F1KEY:
printf ("F1KEY\n");
if (Value);
Do_Something();
break;
case PFUDEV_F2KEY:
printf ("F2KEY\n");
break;
.
.
.
default:
break;
}
}
Thanks,
John Vanderburgh
AF Institute of Technology
Wright-Patterson AFB, OH
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:36 PDT