Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ms(4S) — SunOS 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

win(4S)

MS(4S)  —  System Manager’s Manual — Special Files

NAME

ms − Sun mouse

SYNOPSIS

device ms0

DESCRIPTION

The ms interface provides access to the Sun Workstation mouse.  The mouse incorporates a microprocessor which generates a byte-stream protocol encoding mouse motions. 

Each mouse sample in the byte stream consists of three bytes: the first byte gives the button state with value 0x80|but, where but is the low three bits giving the mouse buttons.  Thus if the left button is down the value of this sample will be 0x84, while if the right button is down the byte will be 0x81. 

The next two bytes of each sample give the x and y delta’s of this sample as signed bytes.  The mouse uses a lower-left coordinate system, so moves to the right on the screen yield positive x values and moves down the screen yield negative y values. 

The beginning of a sample is identifiable because the delta’s are constrained to not have values in the range 0x80-0x87. 

FILES

/dev/ms0

SEE ALSO

win(4S)
Mouse System Mouse Manual (Sun 800-0419)
User’s Guide for the Sun Workstation Mouse Subsystem (Sun 800-0402)

Sun System Release 1.0  —  11 August 1983

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