Deleted Added
full compact
sysmouse.4 (57676) sysmouse.4 (60748)
1.\" Copyright (c) 1997
2.\" John-Mark Gurney. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 11 unchanged lines hidden (view full) ---

20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
1.\" Copyright (c) 1997
2.\" John-Mark Gurney. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 11 unchanged lines hidden (view full) ---

20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" $FreeBSD: head/share/man/man4/sysmouse.4 57676 2000-03-01 14:50:24Z sheldonh $
28.\" $FreeBSD: head/share/man/man4/sysmouse.4 60748 2000-05-21 03:06:28Z hoek $
29.\"
30.Dd December 3, 1997
31.Dt SYSMOUSE 4
32.Os FreeBSD
33.Sh NAME
34.Nm sysmouse
35.\" .Nd supplies mouse data from syscons for other applications
36.Nd virtualized mouse driver

--- 90 unchanged lines hidden (view full) ---

127commands:
128commands for the
129.Nm
130driver itself, and commands for the console and the console control drivers.
131.Ss Sysmouse Ioctls
132There are a few commands for mouse drivers.
133General description of the commands is given in
134.Xr mouse 4 .
29.\"
30.Dd December 3, 1997
31.Dt SYSMOUSE 4
32.Os FreeBSD
33.Sh NAME
34.Nm sysmouse
35.\" .Nd supplies mouse data from syscons for other applications
36.Nd virtualized mouse driver

--- 90 unchanged lines hidden (view full) ---

127commands:
128commands for the
129.Nm
130driver itself, and commands for the console and the console control drivers.
131.Ss Sysmouse Ioctls
132There are a few commands for mouse drivers.
133General description of the commands is given in
134.Xr mouse 4 .
135Followings are the features specific to the
135Following are the features specific to the
136.Nm
137driver.
138.Pp
139.Bl -tag -width MOUSE -compact
140.It Dv MOUSE_GETLEVEL Ar int *level
141.It Dv MOUSE_SETLEVEL Ar int *level
142These commands manipulate the operation level of the mouse driver.
143.Pp

--- 103 unchanged lines hidden (view full) ---

247.Dv syncmask
248holds a bit mask and pattern to detect the first byte of the
249data packet.
250.Dv syncmask[0]
251is the bit mask to be ANDed with a byte.
252If the result is equal to
253.Dv syncmask[1] ,
254the byte is likely to be the first byte of the data packet.
136.Nm
137driver.
138.Pp
139.Bl -tag -width MOUSE -compact
140.It Dv MOUSE_GETLEVEL Ar int *level
141.It Dv MOUSE_SETLEVEL Ar int *level
142These commands manipulate the operation level of the mouse driver.
143.Pp

--- 103 unchanged lines hidden (view full) ---

247.Dv syncmask
248holds a bit mask and pattern to detect the first byte of the
249data packet.
250.Dv syncmask[0]
251is the bit mask to be ANDed with a byte.
252If the result is equal to
253.Dv syncmask[1] ,
254the byte is likely to be the first byte of the data packet.
255Note that this method of detecting the first byte is not 100% reliable,
256thus, should be taken only as an advisory measure.
255Note that this method of detecting the first byte is not 100% reliable;
256thus, it should be taken only as an advisory measure.
257.Pp
258.It Dv MOUSE_SETMODE Ar mousemode_t *mode
259The command changes the current operation parameters of the mouse driver
260as specified in
261.Ar mode .
262Only
263.Dv level
264may be modifiable.

--- 32 unchanged lines hidden (view full) ---

297.Xr moused 8
298uses
299.Fn ioctl
300calls to the console control device
301.Pa /dev/consolectl
302to inform the console of mouse actions including mouse movement
303and button status.
304.Pp
257.Pp
258.It Dv MOUSE_SETMODE Ar mousemode_t *mode
259The command changes the current operation parameters of the mouse driver
260as specified in
261.Ar mode .
262Only
263.Dv level
264may be modifiable.

--- 32 unchanged lines hidden (view full) ---

297.Xr moused 8
298uses
299.Fn ioctl
300calls to the console control device
301.Pa /dev/consolectl
302to inform the console of mouse actions including mouse movement
303and button status.
304.Pp
305Both classes
305Both classes of
306.Fn ioctl
307commands are defined as
308.Dv CONS_MOUSECTL
309which takes the following argument.
310.Bd -literal
311struct mouse_info {
312 int operation;
313 union {

--- 29 unchanged lines hidden (view full) ---

343.Xr signal 3
344to be delivered to the current process when a button is pressed.
345The signal to be delivered is set in
346.Dv u.mode .
347.El
348.Pp
349The above operations are for virtual consoles.
350The operations defined
306.Fn ioctl
307commands are defined as
308.Dv CONS_MOUSECTL
309which takes the following argument.
310.Bd -literal
311struct mouse_info {
312 int operation;
313 union {

--- 29 unchanged lines hidden (view full) ---

343.Xr signal 3
344to be delivered to the current process when a button is pressed.
345The signal to be delivered is set in
346.Dv u.mode .
347.El
348.Pp
349The above operations are for virtual consoles.
350The operations defined
351below are for the console control device and used by
351below are for the console control device and are used by
352.Xr moused 8
353to pass mouse data to the console driver.
354.Pp
355.Bl -tag -width MOUSE_MOVEABS -compact
356.It Dv MOUSE_ACTION
357.It Dv MOUSE_MOTIONEVENT
358These operations take the information in
359.Dv u.data

--- 112 unchanged lines hidden ---
352.Xr moused 8
353to pass mouse data to the console driver.
354.Pp
355.Bl -tag -width MOUSE_MOVEABS -compact
356.It Dv MOUSE_ACTION
357.It Dv MOUSE_MOTIONEVENT
358These operations take the information in
359.Dv u.data

--- 112 unchanged lines hidden ---