Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

streamio(7)

gin(7)

MOUSE(7)  —  

NAME

mouse − mouse driver

DESCRIPTION

The mouse driver interfaces to the quadrature three button mouse.  This driver is a STREAMS driver; thus it can be linked (via I_LINK ioctl) under the gin multiplexor.  Every clock tick (10 milliseconds), the mouse device is scanned.  If the position or the buttons have been changed from the previous reading, new data are generated and sent upstream.  Data are encupsulated in the form of the structure of gin, which is defined in <machine/gin.h>. 

COMMANDS FUNCTIONS

mouse recognizes the following ioctl commands.  They have to be encoded in I_STR using the ginioctl structure.  (See gin(7).) 

G_ENABLE Enable the mouse device. 

G_DISABLE Disable the mouse device. 

G_MSTHRESH
Set the threshold value. Mouse position (either x- or y- coordinate) is considered changed when the two consecutive readings differ at least this threshold value.

The default threshold is 2. 

G_MGTHRESH
Get the threshold value.

G_RESET Re-enable the mouse device and set the threshold to the default value. 

FILES

/dev/mouse − clone device
/dev/mouse0 − mouse for display 0
/dev/mouse1 − mouse for display 1

SEE ALSO

streamio(7), gin(7)

September 02, 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026