.\"
.\" $XConsortium: p061,v 5.2 94/04/17 20:54:58 rws Exp $
.\"
.\" 
$XMCOPY
.\" Copyright (c) 1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
.\" 
.\"                         All Rights Reserved
.\" 
.\" Permission to use, copy, modify, and distribute this software and its 
.\" documentation for any purpose and without fee is hereby granted, 
.\" provided that the above copyright notice appear in all copies and that
.\" both that copyright notice and this permission notice appear in 
.\" supporting documentation, and that the names of Sun Microsystems,
.\" and the X Consortium not be used in advertising or publicity 
.\" pertaining to distribution of the software without specific, written 
.\" prior permission.  
.\" 
.\" SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
.\" INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
.\" EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
.\" CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
.\" USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
.\" OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.
.TH "FLUSH DEVICE EVENTS" 3P "29 February 1991"
.SH NAME
FLUSH DEVICE EVENTS \- remove all entries generated by a specified input
device from the input event queue
.IX "Event Input Mode" "FLUSH DEVICE EVENTS"
.IX "Input Modes" "FLUSH DEVICE EVENTS"
.SH SYNOPSIS
.SS C Syntax
.ft B
.ta 1.25i 3i
.nf
void
pflush_events ( ws, class, dev )
Pint	ws;	 \fIworkstation identifier\fP 
Pin_class	class;	 \fIdevice class\fP 
Pint	dev;	 \fIlogical input device number\fP 
.fi
.ft R
.SS Required PHIGS Operating States
(PHOP, WSOP, *, *)
.SH DESCRIPTION
.SS Purpose
Use \s-2FLUSH DEVICE EVENTS\s+2 to remove all the events in the input
queue that were generated by a specified input device.
.SS C Input Parameters
.IP \fIws\fP
The workstation identifier of the workstation associated with the input device.
.IP \fIclass\fP
The input class of the input device.
Pin_class is an enumerated type defined in phigs.h that may take the
following values:
.ta .5i +1i
.sp .5
.nf
	\(bu  PIN_NONE
	\(bu  PIN_LOC
	\(bu  PIN_STROKE
	\(bu  PIN_VAL
	\(bu  PIN_CHOICE
	\(bu  PIN_PICK
	\(bu  PIN_STRING
.fi
.IP \fIdev\fP
The device number of the input device.
.SH ERRORS
.IP 003
Ignoring function, function requires state (\s-2PHOP, WSOP, *, *\s+2)
.IP 054
Ignoring function, the specified workstation is not open
.IP 061
Ignoring function, specified workstation is neither of category \s-2INPUT\s+2
nor of category \s-2OUTIN\s+2
.IP 250
Ignoring function, the specified device is not available
on the specified workstation
.IP 256
Warning, the input queue has overflowed
.SH SEE ALSO
.nf
.IP
.ta 0.5i
.SM "AWAIT EVENT (3P)"
.fi
