mouse(7) mouse(7)
NAME
/dev/mouse -mouse driver
DESCRIPTION
The mouse driver provides simple, UNIX®-style, access to the
mouse device. This driver allows one to open the mouse
device, read the mouse position and sense the mouse button
state. All I/O transactions complete immediately, whether
succeeding or not.
Opens of /dev/mouse will always succeed as long as no other
user is using the mouse (see console(7)) and the mouse is
connected to the system. Reads from the mouse device always
return 4 bytes. The first two are a 16 bit signed absolute
mouse horizontal position. The next two bytes give the
vertical position in a similar manner. Positioning is
relative to (0, 0) when the Oreo System was started.
Writes to the mouse device always fail. The mouse supports
one ioctl, MOUSEBUTTON (in sys/mouse.h) which takes as a
parameter the address of a character into which it returns
the current state of the mouse's button.
FILES
/dev/mouse
sys/mous.h
SEE ALSO
cat(1), console(7).
Page 1 (last mod. 1/15/87)