summaryrefslogtreecommitdiff
path: root/static/netbsd/man4/man4.sun3/ms.4 4.html
blob: 6d6be4d45633ab7375dc2d4854bb0b0ad76789e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<table class="head">
  <tr>
    <td class="head-ltitle">MS(4)</td>
    <td class="head-vol">Device Drivers Manual (sun3)</td>
    <td class="head-rtitle">MS(4)</td>
  </tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">ms</code> &#x2014; <span class="Nd">Sun
    workstation mouse driver</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp"><code class="Cd">pseudo-device mouse</code></p>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">The <code class="Nm">ms</code> driver provides an interface to the
    workstation console mouse. This Mouse Systems three-button device produces
    five-byte blobs of the form:</p>
<div class="Bd Pp Bd-indent Li">
<pre>b dx dy dx dy</pre>
</div>
<p class="Pp">where &#x201C;b&#x201D; is the button state, encoded as
    <code class="Li">0x80|(~buttons)</code> -- there are three buttons (4=left,
    2=middle, 1=right) -- and &#x201C;dx&#x201D; and &#x201C;dy&#x201D; are X
    and Y delta values, none of which are in the range
    [<code class="Li">0x80..0x87</code>].</p>
<p class="Pp">The device special file <span class="Pa">/dev/mouse</span> is used
    to get direct access to the mouse input stream. The following ioctl's are
    supported (mostly just enough to keep the <code class="Ic">X</code> server
    going):</p>
<dl class="Bl-tag">
  <dt id="VUIDSFORMAT"><a class="permalink" href="#VUIDSFORMAT"><code class="Dv">VUIDSFORMAT</code></a></dt>
  <dd>Set translation mode. The argument is of type <var class="Fa">int *</var>,
      the only value supported is <code class="Dv">VUID_FIRM_EVENT</code>.</dd>
  <dt id="VUIDGFORMAT"><a class="permalink" href="#VUIDGFORMAT"><code class="Dv">VUIDGFORMAT</code></a></dt>
  <dd>Get translation mode. The argument is of type <var class="Fa">int *</var>.
      <code class="Dv">VUID_FIRM_EVENT</code> is always returned.</dd>
</dl>
<section class="Ss">
<h2 class="Ss" id="OPTIONS"><a class="permalink" href="#OPTIONS">OPTIONS</a></h2>
<p class="Pp">The mouse driver can be configured using the following kernel
    configuration file options.</p>
<dl class="Bl-tag">
  <dt><code class="Cd">options SUN_MS_BPS=integer</code></dt>
  <dd>This option causes the kernel to communicate with the mouse using the
      serial baud rate <var class="Va">integer</var>. It is useful for mice
      which do not communicate at 1200 baud.</dd>
</dl>
</section>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
  ALSO</a></h1>
<p class="Pp"><a class="Xr">sun3/kbd(4)</a></p>
</section>
<section class="Sh">
<h1 class="Sh" id="BUGS"><a class="permalink" href="#BUGS">BUGS</a></h1>
<p class="Pp"><code class="Nm">ms</code> is hardwired to the built-in
    <a class="permalink" href="#zs1"><i class="Em" id="zs1">zs1</i></a> serial
    port.</p>
</section>
</div>
<table class="foot">
  <tr>
    <td class="foot-date">February 17, 2017</td>
    <td class="foot-os">NetBSD 10.1</td>
  </tr>
</table>