Lines Matching full:mouse
39 ** Mouse protocol conversion daemon : listens to a serial port or
40 ** the PS/2 mouse port for mouse data stream, decodes data and passes
43 ** The mouse interface functions are derived closely from the mouse
51 #include <sys/mouse.h>
154 /* interface (the table must be ordered by MOUSE_IF_XXX in mouse.h) */
163 /* types (the table must be ordered by MOUSE_PROTO_XXX in mouse.h) */
201 { "4D Mouse", MOUSE_MODEL_4D, 0 },
202 { "4D+ Mouse", MOUSE_MODEL_4DPLUS, 0 },
218 /* Tremon Wheel Mouse MUSD */
220 /* Genius PnP Mouse */
222 /* MouseSystems SmartScroll Mouse (OEM from Genius?) */
240 /* A4 Tech 4D/4D+ Mouse */
242 /* 8D Scroll Mouse */
244 /* Mitsumi Wireless Scroll Mouse */
260 /* Genius Mouse */
262 /* Genius Mouse */
288 /* MS Kids Mouse */
317 /* the table must be ordered by MOUSE_PROTO_XXX in mouse.h */
331 (CS7 | CREAD | CLOCAL | HUPCL), /* Thinking Mouse */
363 int mfd; /* mouse file descriptor */
365 int mremsfd; /* mouse remote server file descriptor */
366 int mremcfd; /* mouse remote client file descriptor */
368 mousehw_t hw; /* mouse device hardware information */
547 warnx("no such mouse type `%s'", optarg); in main()
588 logwarnx("cannot determine mouse type on %s", rodent.portname); in main()
645 mousestatus_t action; /* mouse action */ in msconvd()
673 /* clear mouse data */ in msconvd()
676 /* process mouse data */ in msconvd()
688 logwarn("failed to read from mouse"); in msconvd()
700 /* mouse movement */ in msconvd()
783 * Setup uinput device as 8button mouse with wheel
800 "%s mouse on %s", r_model(rodent.hw.model), rodent.portname); in r_uinput_register()
820 /* Advertise mouse buttons */ in r_uinput_register()
875 ** Mouse interface code, courtesy of XFree86 3.1.2.
923 /* the following table must be ordered by MOUSE_PROTO_XXX in mouse.h */
933 { 0xc0, 0x00, 0x00, 0x00, 3, 0x00, 0xff }, /* PS/2 mouse */
984 logwarnx("unknown mouse protocol (%d)", rodent.mode.protocol); in r_identify()
990 logwarnx("mouse type mismatch (%s != %s), %s is assumed", in r_identify()
1002 /* maybe this is a PnP mouse... */ in r_identify()
1010 debug("PnP serial mouse: '%*.*s' '%*.*s' '%*.*s'", in r_identify()
1030 logwarnx("mouse type mismatch (%s != %s), %s is assumed", in r_identify()
1099 ** plus a 4th byte for the middle button. However, the mouse might in r_init()
1111 ** - 5 byte packed binary protocol, as with the Mouse Systems in r_init()
1112 ** mouse. Selected by sequence "*U". in r_init()
1295 IntelliMouse, Thinking Mouse */ in r_protocol()
1302 Thinking Mouse */ in r_protocol()
1309 static int butmapintelli[4] = { /* IntelliMouse, NetMouse, Mie Mouse, in r_protocol()
1393 * NOTE/2: On a PS/2 mouse any byte is valid as a data byte. Furthermore, in r_protocol()
1394 * 0x80 is not valid as a header byte. For a PS/2 mouse we skip in r_protocol()
1396 * For resyncing a PS/2 mouse we require the two most significant in r_protocol()
1419 * Hack for Logitech MouseMan Mouse - Middle button in r_protocol()
1421 * Unfortunately this mouse has variable length packets: the standard in r_protocol()
1461 * This mouse has 16! buttons in addition to the standard in r_protocol()
1483 * IntelliMouse, NetMouse (including NetMouse Pro) and Mie Mouse in r_protocol()
1490 case MOUSE_PROTO_INTELLI: /* IntelliMouse, NetMouse, Mie Mouse, in r_protocol()
1563 case MOUSE_PROTO_INTELLI: /* IntelliMouse, NetMouse, Mie Mouse, in r_protocol()
1634 * which sends mouse data in MOUSE_PROTO_SYSMOUSE protocol. in r_protocol()
1687 * IBM ScrollPoint Mouse uses this packet type to in r_protocol()
1859 logwarn("unable to get status of mouse fd"); in setmousespeed()
1892 logwarn("unable to set status of mouse fd"); in setmousespeed()
1925 logwarn("unable to write to mouse fd"); in setmousespeed()
1932 logwarn("unable to set status of mouse fd"); in setmousespeed()
1980 * The PnP COM device spec. dictates that the mouse must set DSR in pnpwakeup1()
2102 usleep(240000); /* the mouse must send `Begin ID' within 200msec */ in pnpgets()
2189 id->class = "MOUSE"; in pnpparse()
2191 debug("non-PnP mouse '%c'", buf[0]); in pnpparse()
2306 if (strncmp(id->class, "MOUSE", id->nclass) != 0 && in pnpproto()
2308 /* this is not a mouse! */ in pnpproto()
2550 /* Open a UNIX domain stream socket to listen for mouse remote clients */ in mremote_serversetup()
2586 logwarnx("failed accept on mouse remote socket"); in mremote_clientchg()