Formatting improvements.
This commit is contained in:
parent
353da80a47
commit
fef8e5e62b
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: ms.4,v 1.3 2001/04/21 14:32:27 wiz Exp $
|
||||
.\" $NetBSD: ms.4,v 1.4 2002/01/15 01:30:39 wiz Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1995 Leo Weppelman
|
||||
.\" All rights reserved.
|
||||
@ -41,15 +41,12 @@ mouse interface
|
||||
.Sh SYNOPSIS
|
||||
.Cd "pseudo-device mouse 1"
|
||||
.Sh DESCRIPTION
|
||||
|
||||
The Atari mouse driver supports both the original Atari mouse and the third
|
||||
party 3-button mouse that has its middle button connected to the up-switch
|
||||
of the second joystick port. To accommodate X11 users with a standard mouse,
|
||||
the driver is able to emulate the middle button. See the section on ioctls
|
||||
for more info.
|
||||
.Pp
|
||||
.Bl -tag
|
||||
.It Sy Supported ioctls
|
||||
.Ss Supported ioctls
|
||||
.Bl -tag -width MIOCG3B_EMUL -compact
|
||||
.It MIOCS3B_EMUL
|
||||
This ioctl turns the middle button emulation on or off depending on its
|
||||
@ -60,12 +57,9 @@ Note that the emulation status is retained across multiple open/close calls.
|
||||
.It MIOCG3B_EMUL
|
||||
This ioctl allows you to get the actual status of the emulation mode.
|
||||
.El
|
||||
.El
|
||||
.Bl -tag
|
||||
.It Sy Interface description
|
||||
.Ss Interface description
|
||||
The Atari mouse interface works on a minimal emulation of Sun's Firm_event
|
||||
structures. The primary reason for this is easy interfacing with X11.
|
||||
|
||||
.Pp
|
||||
The movement and button events are read as structures of the form:
|
||||
.Bd -literal
|
||||
@ -75,7 +69,7 @@ typedef struct Firm_event {
|
||||
int_16_t value; /* VKEY_{UP,DOWN} or locator delta */
|
||||
struct timeval time; /* time stamp of the event */
|
||||
}
|
||||
|
||||
.Ed
|
||||
.Pp
|
||||
The values of 'id' concerning the mouse:
|
||||
.Bd -literal
|
||||
@ -85,15 +79,12 @@ The values of 'id' concerning the mouse:
|
||||
#define LOC_X_DELTA 0x7f80 /* mouse delta-X */
|
||||
#define LOC_Y_DELTA 0x7f81 /* mouse delta-Y */
|
||||
.Ed
|
||||
|
||||
.Pp
|
||||
The values of 'value' concerning a button event:
|
||||
.Bd -literal
|
||||
#define VKEY_UP 0 /* a button went up */
|
||||
#define VKEY_DOWN 1 /* a button went down */
|
||||
.Ed
|
||||
|
||||
.Pp
|
||||
.Sh FILES
|
||||
.Bl -tag -width /dev/mouse0 -compact
|
||||
.It Pa /dev/mouse0
|
||||
@ -101,6 +92,5 @@ The real mouse device
|
||||
.It Pa /dev/mouse
|
||||
The currently active mouse device
|
||||
.El
|
||||
.El
|
||||
.Sh BUGS
|
||||
The time interval that defines 'simultaneous' cannot be set.
|
||||
|
Loading…
Reference in New Issue
Block a user