Lines Matching +full:device +full:- +full:level

3 .\" Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
32 .Nd mouse and pointing device drivers
42 Currently there are specific device drivers for bus, InPort, PS/2, and USB mice.
44 it is accessible via the serial device driver or via
49 The user program simply opens a mouse device with a
52 mouse data from the device via
54 Movement and button states are usually encoded in fixed-length data packets.
58 The mouse drivers may have ``non-blocking'' attribute which will make
61 Mouse device drivers often offer several levels of operation.
62 The current operation level can be examined and changed via
65 The level zero is the lowest level at which the driver offers the basic
68 and state of up to three buttons at this level.
69 At the level one, if supported by the driver, mouse data is encoded
74 .Bl -tag -width Byte_1 -compact
76 .Bl -tag -width bit_7 -compact
86 if the device does not have the middle button.
92 -128 through 127.
95 -128 through 127.
98 -128 through 127.
103 -128 through 127.
109 Z axis movement count in two's complement; -64 through 63.
113 the Z axis movement count in two's complement; -64 through 63.
133 Device drivers may offer operation levels higher than one.
145 .Bl -tag -width MOUSE -compact
146 .It Dv MOUSE_GETLEVEL Ar int *level
147 .It Dv MOUSE_SETLEVEL Ar int *level
148 These commands manipulate the operation level of the mouse driver.
151 Returns the hardware information of the attached device in the following
154 field, the device driver may not always fill the structure with correct
157 .Bd -literal
188 tells the device type:
206 is the ID value returned by the pointing device.
213 .Bd -literal
217 int resolution; /* MOUSE_RES_XXX, -1 if unknown */
219 int level; /* driver operation level */
227 field tells the format in which the device status is returned
235 field is the status report rate (reports/sec) at which the device will send
237 -1 if unknown or not applicable.
241 field holds a value specifying resolution of the pointing device.
254 field tells the length of the fixed-size data packet or the length
255 of the fixed part of the variable-length packet.
256 The size depends on the interface type, the device type and model, the
257 protocol and the operation level of the driver.
278 .Dv level
285 If you do not want to change the current setting of a field, put -1
294 The command reads the raw data from the device.
295 .Bd -literal
308 The command reads the raw state data from the device.
315 .Bd -literal
357 .Bl -tag -width /dev/sysmouseXX -compact
361 PS/2 mouse device
363 virtual mouse device
365 USB mouse device