Technical data

SunOS 5.5 STREAMS Modules vuidmice(7M)
NAME vuidmice, vuidm3p, vuidm4p, vuidm5p, vuid2ps2, vuid3ps2 converts mouse protocol
to Firm Events
SYNOPSIS #include <sys/stream.h>
#include <sys/vuid_event.h>
int ioctl(fd, I_PUSH, vuidm3p);
int ioctl(fd, I_PUSH, vuidm4p);
int ioctl(fd, I_PUSH, vuidm5p);
int ioctl(fd, I_PUSH, vuid2ps2);
int ioctl(fd, I_PUSH, vuid3ps2);
AVAILABILITY x86
DESCRIPTION The STREAMS modules vuidm3p, vuidm4p, vuidm5p, vuid2ps2, and vuid3ps2 convert
mouse protocols to Firm events. The Firm event structure is described in
<sys/vuid_event.h>. Pushing aSTREAMS module does not automatically enable mouse
protocol conversion to Firm events. The STREAMS module state is initiallyset to raw or
VUID_NATIVE mode which performs no message processing. The user will need to
change the state to VUID_FIRM_EVENT mode in order to initiate mouse protocol conver-
sion to Firm events. This can be accomplished by the following code:
int format;
format = VUID_FIRM_EVENT;
ioctl(fd, VUIDSFORMAT, &format);
The user can also query the state of the STREAMS module by using theVUIDGFORMAT
option.
int format;
int fd; /file descriptor /
ioctl(fd, VUIDGFORMAT, &format);
if ( format == VUID_NATIVE );
/The state of the module is in raw mode.
Message processing is not enabled.
/
if ( format == VUID_FIRM_EVENT );
/Message processing is enabled.
Mouse protocol conversion to Firm events
are performed.
The remainder of this section describes the processing of STREAMS messages on the read-
and write-side.
modified 17 Dec 1993 7M-397