Changeset 31415 in vbox for trunk/src/VBox/Additions/x11/vboxmouse/xorg70
- Timestamp:
- Aug 5, 2010 3:49:48 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/x11/vboxmouse/xorg70
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxmouse/xorg70/mouse.c
r28800 r31415 474 474 int target; /* target button */ 475 475 int lockM,targetM; /* bitmasks for drag lock, target */ 476 int i, j; /* indexes */476 int k, j; /* indexes */ 477 477 char *s1; /* parse input string */ 478 478 DragLockPtr pLock; … … 538 538 539 539 /* for each nibble */ 540 for ( i = 0; i < NIB_COUNT; i++) {540 for (k = 0; k < NIB_COUNT; k++) { 541 541 /* for each possible set of bits for that nibble */ 542 542 for (j = 0; j < NIB_SIZE; j++) { … … 554 554 * if otherbits =0 then only 1 bit set 555 555 * so j=fM 556 * nib_table[ i][fM] already calculated if fM has556 * nib_table[k][fM] already calculated if fM has 557 557 * only 1 bit set. 558 * nib_table[ i][j] has already been filled in558 * nib_table[k][j] has already been filled in 559 559 * by previous loop. otherwise 560 * otherbits < j so nibtable[ i][otherbits]560 * otherbits < j so nibtable[k][otherbits] 561 561 * has already been calculated. 562 562 */ 563 563 if (otherbits) 564 pLock->nib_table[ i][j] =565 pLock->nib_table[ i][fM] |566 pLock->nib_table[ i][otherbits];564 pLock->nib_table[k][j] = 565 pLock->nib_table[k][fM] | 566 pLock->nib_table[k][otherbits]; 567 567 568 568 } … … 3654 3654 case AUTOPROBE_SWITCH_PROTOCOL: 3655 3655 { 3656 MouseProtocolID prot o;3656 MouseProtocolID prot; 3657 3657 void *defaults; 3658 3658 AP_DBG(("State SWITCH_PROTOCOL\n")); 3659 prot o= mPriv->protoList[mPriv->protocolID++];3660 if (prot o== PROT_UNKNOWN)3659 prot = mPriv->protoList[mPriv->protocolID++]; 3660 if (prot == PROT_UNKNOWN) 3661 3661 mPriv->autoState = AUTOPROBE_SWITCHSERIAL; 3662 else if (!(defaults = GetProtocol(prot o)->defaults)3662 else if (!(defaults = GetProtocol(prot)->defaults) 3663 3663 || (mPriv->serialDefaultsNum == -1 3664 3664 && (defaults == msDefaults)) … … 3667 3667 == defaults)) { 3668 3668 AP_DBG(("Changing Protocol to %s\n", 3669 ProtocolIDToName(prot o)));3670 SetMouseProto(pMse,prot o);3669 ProtocolIDToName(prot))); 3670 SetMouseProto(pMse,prot); 3671 3671 FlushButtons(pMse); 3672 3672 RESET_VALIDATION; -
trunk/src/VBox/Additions/x11/vboxmouse/xorg70/pnp.c
r7261 r31415 714 714 if (u == 0x03) { 715 715 /* found IntelliMouse now try IntelliExplorer */ 716 unsigned char seq [] = { 243, 200, 243, 200, 243, 80 };717 if (ps2SendPacket(pInfo,seq ,sizeof(seq))) {716 unsigned char seq2[] = { 243, 200, 243, 200, 243, 80 }; 717 if (ps2SendPacket(pInfo,seq2,sizeof(seq2))) { 718 718 u = ps2GetDeviceID(pInfo); 719 719 if (u == 0x04)
Note:
See TracChangeset
for help on using the changeset viewer.