sysmouse.4 (84306) | sysmouse.4 (117011) |
---|---|
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 84306 2001-10-01 16:09:29Z ru $ | 28.\" $FreeBSD: head/share/man/man4/sysmouse.4 117011 2003-06-28 23:53:39Z ru $ |
29.\" 30.Dd December 3, 1997 31.Dt SYSMOUSE 4 32.Os 33.Sh NAME 34.Nm sysmouse 35.\" .Nd supplies mouse data from syscons for other applications 36.Nd virtualized mouse driver --- 102 unchanged lines hidden (view full) --- 139.Pp 140.Bl -tag -width MOUSE -compact 141.It Dv MOUSE_GETLEVEL Ar int *level 142.It Dv MOUSE_SETLEVEL Ar int *level 143These commands manipulate the operation level of the mouse driver. 144.Pp 145.It Dv MOUSE_GETHWINFO Ar mousehw_t *hw 146Returns the hardware information of the attached device in the following | 29.\" 30.Dd December 3, 1997 31.Dt SYSMOUSE 4 32.Os 33.Sh NAME 34.Nm sysmouse 35.\" .Nd supplies mouse data from syscons for other applications 36.Nd virtualized mouse driver --- 102 unchanged lines hidden (view full) --- 139.Pp 140.Bl -tag -width MOUSE -compact 141.It Dv MOUSE_GETLEVEL Ar int *level 142.It Dv MOUSE_SETLEVEL Ar int *level 143These commands manipulate the operation level of the mouse driver. 144.Pp 145.It Dv MOUSE_GETHWINFO Ar mousehw_t *hw 146Returns the hardware information of the attached device in the following |
147structure. Only the | 147structure. 148Only the |
148.Dv iftype 149field is guaranteed to be filled with the correct value in the current 150version of the 151.Nm 152driver. 153.Bd -literal 154typedef struct mousehw { 155 int buttons; /* number of buttons */ --- 197 unchanged lines hidden (view full) --- 353.Xr moused 8 354to pass mouse data to the console driver. 355.Pp 356.Bl -tag -width MOUSE_MOVEABS -compact 357.It Dv MOUSE_ACTION 358.It Dv MOUSE_MOTIONEVENT 359These operations take the information in 360.Dv u.data | 149.Dv iftype 150field is guaranteed to be filled with the correct value in the current 151version of the 152.Nm 153driver. 154.Bd -literal 155typedef struct mousehw { 156 int buttons; /* number of buttons */ --- 197 unchanged lines hidden (view full) --- 354.Xr moused 8 355to pass mouse data to the console driver. 356.Pp 357.Bl -tag -width MOUSE_MOVEABS -compact 358.It Dv MOUSE_ACTION 359.It Dv MOUSE_MOTIONEVENT 360These operations take the information in 361.Dv u.data |
361and act upon it. Mouse data will be sent to the | 362and act upon it. 363Mouse data will be sent to the |
362.Nm 363driver if it is open. 364.Dv MOUSE_ACTION 365also processes button press actions and sends signal to the process if 366requested or performs cut and paste operations 367if the current console is a text interface. 368.It Dv MOUSE_BUTTONEVENT 369.Dv u.data --- 28 unchanged lines hidden (view full) --- 398.Dv x , 399.Dv y 400and 401.Dv z 402represent movement of the mouse along respective directions. 403.Dv buttons 404tells the state of buttons. 405It encodes up to 31 buttons in the bit 0 though | 364.Nm 365driver if it is open. 366.Dv MOUSE_ACTION 367also processes button press actions and sends signal to the process if 368requested or performs cut and paste operations 369if the current console is a text interface. 370.It Dv MOUSE_BUTTONEVENT 371.Dv u.data --- 28 unchanged lines hidden (view full) --- 400.Dv x , 401.Dv y 402and 403.Dv z 404represent movement of the mouse along respective directions. 405.Dv buttons 406tells the state of buttons. 407It encodes up to 31 buttons in the bit 0 though |
406the bit 30. If a button is held down, the corresponding bit is set. | 408the bit 30. 409If a button is held down, the corresponding bit is set. |
407.Pp 408.It Dv mode 409.Bd -literal 410struct mouse_mode { 411 int mode; 412 int signal; 413}; 414.Ed --- 59 unchanged lines hidden --- | 410.Pp 411.It Dv mode 412.Bd -literal 413struct mouse_mode { 414 int mode; 415 int signal; 416}; 417.Ed --- 59 unchanged lines hidden --- |