summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-17 16:18:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-17 16:18:30 +0000
commit2342247dc2e859dd1462dc940c62443d260ac9d3 (patch)
tree63b9f3fc9bdaad59ee25eb4154c175043508ac5b /share
parent136f79d6eb9eb3faf853b6fae93b9982bde20080 (diff)
from netbsd
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/man4.atari/ms.486
1 files changed, 86 insertions, 0 deletions
diff --git a/share/man/man4/man4.atari/ms.4 b/share/man/man4/man4.atari/ms.4
new file mode 100644
index 00000000000..c35c7643e3b
--- /dev/null
+++ b/share/man/man4/man4.atari/ms.4
@@ -0,0 +1,86 @@
+.\" $NetBSD: ms.4,v 1.1 1995/10/19 06:50:44 leo Exp $
+.\"
+.\" Copyright (c) 1995 Leo Weppelman
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\" must display the following acknowledgement:
+.\" This product includes software developed by Leo Weppelman.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\" may be used to endorse or promote products derived from this software
+.\" without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\"
+.Dd October 16, 1995
+.Dt MS 4 Atari
+.Os
+.Sh NAME
+.Nm ms
+.Nd
+.Tn Atari
+mouse interface
+.Sh SYNOPSIS
+.Cd "pseudo-device mouse 1"
+.Sh 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
+typedef struct Firm_event {
+ u_int_16_t id; /* key or MS_* or LOC_[XY]_DELTA */
+ u_int_16_t pad; /* unused */
+ int_16_t value; /* VKEY_{UP,DOWN} or locator delta */
+ struct timeval time; /* time stamp of the event */
+}
+
+.Pp
+The values of 'id' concerning the mouse:
+.Bd -literal
+#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 */
+.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
+
+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
+.It Pa /dev/mouse0
+The real mouse device
+.It Pa /dev/mouse
+The currently active mouse device
+.El
+.Sh BUGS
+The time interval that defines 'simultaneous' cannot be set.