Lines Matching full:mouse
39 ** Mouse daemon : listens to a serial port, the bus mouse interface, or
40 ** the PS/2 mouse port for mouse data stream, interprets data and passes
43 ** The mouse interface functions are derived closely from the mouse
51 #include <sys/mouse.h>
195 /* interface (the table must be ordered by MOUSE_IF_XXX in mouse.h) */
204 /* types (the table must be ordered by MOUSE_PROTO_XXX in mouse.h) */
242 { "4D Mouse", MOUSE_MODEL_4D, 0 },
243 { "4D+ Mouse", MOUSE_MODEL_4DPLUS, 0 },
259 /* Tremon Wheel Mouse MUSD */
261 /* Genius PnP Mouse */
263 /* MouseSystems SmartScroll Mouse (OEM from Genius?) */
281 /* A4 Tech 4D/4D+ Mouse */
283 /* 8D Scroll Mouse */
285 /* Mitsumi Wireless Scroll Mouse */
301 /* Genius Mouse */
303 /* Genius Mouse */
329 /* MS Kids Mouse */
358 /* the table must be ordered by MOUSE_PROTO_XXX in mouse.h */
372 (CS7 | CREAD | CLOCAL | HUPCL), /* Thinking Mouse */
394 int mfd; /* mouse file descriptor */
396 int mremsfd; /* mouse remote server file descriptor */
397 int mremcfd; /* mouse remote client file descriptor */
401 mousehw_t hw; /* mouse device hardware information */
810 warnx("no such mouse type `%s'", optarg); in main()
873 logwarnx("cannot determine mouse type on %s", rodent.portname); in main()
991 struct mouse_info mouse; in moused() local
992 mousestatus_t action0; /* original mouse action */ in moused()
1024 /* clear mouse data */ in moused()
1028 bzero(&mouse, sizeof(mouse)); in moused()
1042 mouse.operation = MOUSE_MOTION_EVENT; in moused()
1043 extioctl = (ioctl(rodent.cfd, CONS_MOUSECTL, &mouse) == 0); in moused()
1045 /* process mouse data */ in moused()
1061 logwarn("failed to read from mouse"); in moused()
1086 /* mouse movement */ in moused()
1262 mouse.operation = MOUSE_MOTION_EVENT; in moused()
1263 mouse.u.data.buttons = action2.button; in moused()
1266 &mouse.u.data.x, &mouse.u.data.y); in moused()
1270 &mouse.u.data.x, &mouse.u.data.y); in moused()
1272 mouse.u.data.z = action2.dz; in moused()
1275 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); in moused()
1278 mouse.operation = MOUSE_ACTION; in moused()
1279 mouse.u.data.buttons = action2.button; in moused()
1282 &mouse.u.data.x, &mouse.u.data.y); in moused()
1286 &mouse.u.data.x, &mouse.u.data.y); in moused()
1288 mouse.u.data.z = action2.dz; in moused()
1291 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); in moused()
1309 mouse.operation = MOUSE_ACTION; in moused()
1310 mouse.u.data.buttons = action2.button; in moused()
1311 mouse.u.data.x = mouse.u.data.y = mouse.u.data.z = 0; in moused()
1314 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); in moused()
1384 ** Mouse interface code, courtesy of XFree86 3.1.2.
1432 /* the following table must be ordered by MOUSE_PROTO_XXX in mouse.h */
1442 { 0xc0, 0x00, 0x00, 0x00, 3, 0x00, 0xff }, /* PS/2 mouse */
1493 logwarnx("unknown mouse protocol (%d)", rodent.mode.protocol); in r_identify()
1499 logwarnx("mouse type mismatch (%s != %s), %s is assumed", in r_identify()
1511 /* maybe this is a PnP mouse... */ in r_identify()
1519 debug("PnP serial mouse: '%*.*s' '%*.*s' '%*.*s'", in r_identify()
1539 logwarnx("mouse type mismatch (%s != %s), %s is assumed", in r_identify()
1602 ** plus a 4th byte for the middle button. However, the mouse might in r_init()
1614 ** - 5 byte packed binary protocol, as with the Mouse Systems in r_init()
1615 ** mouse. Selected by sequence "*U". in r_init()
1798 IntelliMouse, Thinking Mouse */ in r_protocol()
1805 Thinking Mouse */ in r_protocol()
1812 static int butmapintelli[4] = { /* IntelliMouse, NetMouse, Mie Mouse, in r_protocol()
1896 * NOTE/2: On a PS/2 mouse any byte is valid as a data byte. Furthermore, in r_protocol()
1897 * 0x80 is not valid as a header byte. For a PS/2 mouse we skip in r_protocol()
1899 * For resyncing a PS/2 mouse we require the two most significant in r_protocol()
1922 * Hack for Logitech MouseMan Mouse - Middle button in r_protocol()
1924 * Unfortunately this mouse has variable length packets: the standard in r_protocol()
1964 * This mouse has 16! buttons in addition to the standard in r_protocol()
1986 * IntelliMouse, NetMouse (including NetMouse Pro) and Mie Mouse in r_protocol()
1993 case MOUSE_PROTO_INTELLI: /* IntelliMouse, NetMouse, Mie Mouse, in r_protocol()
2066 case MOUSE_PROTO_INTELLI: /* IntelliMouse, NetMouse, Mie Mouse, in r_protocol()
2137 * which sends mouse data in MOUSE_PROTO_SYSMOUSE protocol. in r_protocol()
2190 * IBM ScrollPoint Mouse uses this packet type to in r_protocol()
2349 * events to allow for mouse jitter. If more movement events in r_statetrans()
2590 struct mouse_info mouse; in r_click() local
2605 mouse.u.event.value = mstate[i]->count; in r_click()
2608 mouse.u.event.value = 0; in r_click()
2610 mouse.operation = MOUSE_BUTTON_EVENT; in r_click()
2611 mouse.u.event.id = button; in r_click()
2614 ioctl(rodent.cfd, CONS_MOUSECTL, &mouse); in r_click()
2615 debug("button %d count %d", i + 1, mouse.u.event.value); in r_click()
2657 logwarn("unable to get status of mouse fd"); in setmousespeed()
2690 logwarn("unable to set status of mouse fd"); in setmousespeed()
2723 logwarn("unable to write to mouse fd"); in setmousespeed()
2730 logwarn("unable to set status of mouse fd"); in setmousespeed()
2778 * The PnP COM device spec. dictates that the mouse must set DSR in pnpwakeup1()
2900 usleep(240000); /* the mouse must send `Begin ID' within 200msec */ in pnpgets()
2987 id->class = "MOUSE"; in pnpparse()
2989 debug("non-PnP mouse '%c'", buf[0]); in pnpparse()
3104 if (strncmp(id->class, "MOUSE", id->nclass) != 0 && in pnpproto()
3106 /* this is not a mouse! */ in pnpproto()
3336 /* Open a UNIX domain stream socket to listen for mouse remote clients */ in mremote_serversetup()
3372 logwarnx("failed accept on mouse remote socket"); in mremote_clientchg()