Changeset 33540 in vbox for trunk/src/VBox/Additions/x11/vboxmouse
- Timestamp:
- Oct 28, 2010 9:27:05 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67140
- Location:
- trunk/src/VBox/Additions/x11/vboxmouse
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxmouse/Makefile.kmk
r32623 r33540 29 29 vboxmouse_drv_DEFS.x86 += __i386__ 30 30 # This one has to be defined when building server code on systems where 31 # uns lgned long is 64bits31 # unsigned long is 64bits 32 32 vboxmouse_drv_DEFS.amd64 += _XSERVER64 33 33 vboxmouse_drv_DEFS += \ -
trunk/src/VBox/Additions/x11/vboxmouse/mouse.c
r31415 r33540 1044 1044 xf86WriteSerial(pInfo->fd, "R", 1); /* Set Output Rate = "45 rps" */ 1045 1045 usleep(50000); 1046 xf86WriteSerial(pInfo->fd, "I\x20", 2); /* Set Increme mtal Mode "20" */1046 xf86WriteSerial(pInfo->fd, "I\x20", 2); /* Set Incremental Mode "20" */ 1047 1047 usleep(50000); 1048 1048 xf86WriteSerial(pInfo->fd, "E", 1); /* Set Data Type = "Relative */ … … 1147 1147 * Set blocking to -1 on the first call because we know there is data to 1148 1148 * read. Xisb automatically clears it after one successful read so that 1149 * succeeding reads are prece eded by a select with a 0 timeout to prevent1149 * succeeding reads are preceded by a select with a 0 timeout to prevent 1150 1150 * read from blocking indefinitely. 1151 1151 */ … … 1200 1200 /* 1201 1201 * [KAZU-030897] 1202 * Receive the fourth byte only when prece eding three bytes1202 * Receive the fourth byte only when preceding three bytes 1203 1203 * have been detected (pBufP >= pMse->protoPara[4]). In the 1204 1204 * previous versions, the test was pBufP == 0; we may have 1205 * mistak ingly received a byte even if we didn't see anything1206 * prece eding the byte.1205 * mistakenly received a byte even if we didn't see anything 1206 * preceding the byte. 1207 1207 */ 1208 1208 … … 1796 1796 * action < 0: ButtonRelease 1797 1797 * 1798 * The comment prece eding each section is the current emulation state.1798 * The comment preceding each section is the current emulation state. 1799 1799 * The comments to the right are of the form 1800 1800 * <button state> (<events>) -> <new emulation state> -
trunk/src/VBox/Additions/x11/vboxmouse/pnp.c
r6202 r33540 59 59 /* PnP EISA/product IDs */ 60 60 static symtab_t pnpprod[] = { 61 { "KML0001", PROT_THINKING }, /* Kensi gnton ThinkingMouse */61 { "KML0001", PROT_THINKING }, /* Kensington ThinkingMouse */ 62 62 { "MSH0001", PROT_IMSERIAL }, /* MS IntelliMouse */ 63 63 { "MSH0004", PROT_IMSERIAL }, /* MS IntelliMouse TrackBall */ … … 92 92 { "PNP0F0A", PROT_MS }, /* MS PnP serial */ 93 93 { "PNP0F0B", PROT_MS }, /* MS PnP BallPoint serial */ 94 { "PNP0F0C", PROT_MS }, /* MS serial com atible */95 { "PNP0F0D", PROT_BM }, /* MS InPort com atible */96 { "PNP0F0E", PROT_PS2 }, /* MS PS/2 com atible */97 { "PNP0F0F", PROT_MS }, /* MS BallPoint com atible */94 { "PNP0F0C", PROT_MS }, /* MS serial compatible */ 95 { "PNP0F0D", PROT_BM }, /* MS InPort compatible */ 96 { "PNP0F0E", PROT_PS2 }, /* MS PS/2 compatible */ 97 { "PNP0F0F", PROT_MS }, /* MS BallPoint compatible */ 98 98 #ifdef notyet 99 99 { "PNP0F10", PROT_??? }, /* TI QuickPort */ 100 100 #endif 101 { "PNP0F11", PROT_BM }, /* MS bus com atible */101 { "PNP0F11", PROT_BM }, /* MS bus compatible */ 102 102 { "PNP0F12", PROT_PS2 }, /* Logitech PS/2 */ 103 103 { "PNP0F13", PROT_PS2 }, /* PS/2 */ … … 221 221 usleep(200000); 222 222 223 /* wait for respo se, 2nd phase (2.1.6) */223 /* wait for response, 2nd phase (2.1.6) */ 224 224 xf86FlushInput(pInfo->fd); 225 225 i = TIOCM_DTR | TIOCM_RTS; /* DTR = 1, RTS = 1 */ … … 246 246 xf86SetSerial(pInfo->fd, pnpOpts); 247 247 248 /* wait for respo se */248 /* wait for response */ 249 249 xf86FlushInput(pInfo->fd); 250 250 i = XF86_M_DTR | XF86_M_RTS; /* DTR = 1, RTS = 1 */
Note:
See TracChangeset
for help on using the changeset viewer.