Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mouse(7) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

console(7)




mouse(7) mouse(7)
NAME mouse - mouse input device driver DESCRIPTION The mouse driver provides simple 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 rela- tive to (0, 0) when the A/UX system was started. Writes to the mouse device always fail. The mouse supports one ioctl, MOUSE_BUTTON, which takes as a parameter the ad- dress of a character into which it returns the current state of the mouse's button. The symbol for this ioctl is located in /usr/include/sys/mouse.h. FILES /dev/mouse /usr/include/sys/mouse.h SEE ALSO console(7). April, 1990 1

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