mouse(7) INTERACTIVE UNIX System mouse(7)
NAME
mouse - mouse device interface
DESCRIPTION
The mouse driver supports the Microsoft Inport Bus Mouse on
the AT release and the IBM PS/2 mouse on the PS/2 release.
It allows applications to obtain information about the
mouse's movements and the status of its buttons.
Ioctl Call
MOUSEIOCREAD
This call returns status information about the mouse
buttons and the mouse's relative movement since the
previous MOUSEIOCREAD (or since mouse initialization,
for the first MOUSEIOCREAD). The argument is the
address of a mouseinfo structure; the following struc-
ture definition and #defines may be found in
<sys/mouse.h>:
struct mouseinfo {
unsigned char status;/* see definitions below*/
char xmotion, ymotion;/* between -128 and 127*/
}
#define BUT3STAT 1/* button 3 status (1=down) */
#define BUT2STAT 2/* button 2 status (1=down) */
#define BUT1STAT 4/* button 1 status (1=down) */
#define BUT3CHNG 8/* button 3 changed? (1=yes) */
#define BUT2CHNG 0x10/* button 2 changed? (1=yes) */
#define BUT1CHNG 0x20/* button 1 changed? (1=yes) */
#define MOVEMENT 0x40/* mouse moved? (1=yes) */
FILES
/dev/mouse
ADDED VALUE
This entry, supplied by INTERACTIVE Systems Corporation, is
an extension of UNIX System V.
Rev. 1.2 Page 1