Get in sync with the latest driver update.
This commit is contained in:
parent
f726c602da
commit
74affdc8f8
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: ms.4,v 1.1 1995/10/19 06:50:44 leo Exp $
|
||||
.\" $NetBSD: ms.4,v 1.2 1996/04/25 06:03:47 leo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1995 Leo Weppelman
|
||||
.\" All rights reserved.
|
||||
@ -41,6 +41,28 @@ 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 accomodate 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
|
||||
.Bl -tag -width MIOCG3B_EMUL -compact
|
||||
.It MIOCS3B_EMUL
|
||||
This ioctl turns the middle button emulation on or off depending on its
|
||||
argument. The middle button event is triggered by simultaneously pressing
|
||||
the left and right buttons. The default emulation mode is on.
|
||||
.Pp
|
||||
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
|
||||
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.
|
||||
|
||||
@ -57,23 +79,20 @@ typedef struct Firm_event {
|
||||
.Pp
|
||||
The values of 'id' concerning the mouse:
|
||||
.Bd -literal
|
||||
#define MS_LEFT 0x7f20 /* left mouse button */
|
||||
#define MS_LEFT 0x7f20 /* left mouse button */
|
||||
#define MS_MIDDLE 0x7f21 /* middle mouse button */
|
||||
#define MS_RIGHT 0x7f22 /* right mouse button */
|
||||
#define LOC_X_DELTA 0x7f80 /* mouse delta-X */
|
||||
#define LOC_Y_DELTA 0x7f81 /* mouse delta-Y */
|
||||
#define MS_RIGHT 0x7f22 /* right mouse button */
|
||||
#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_UP 0 /* a button went up */
|
||||
#define VKEY_DOWN 1 /* a button went down */
|
||||
.Ed
|
||||
|
||||
The middle button event is generated by the driver on the Atari. It can
|
||||
be triggered by simultaneously pressing the left and right buttons.
|
||||
|
||||
.Pp
|
||||
.Sh FILES
|
||||
.Bl -tag -width /dev/mouse0 -compact
|
||||
@ -82,5 +101,6 @@ 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