Logitech 3D MOUSE & HEAD TRACKER Technical Reference Manual page 63

Table of Contents

Advertisement

The X and Y movements are relative to the X and Y positions last
reported. The X movement is positive to the East and negative to the
West; Y movement is positive to the South and negative to the North.
MS-Compatible Format (Microsoft 2-Button Mouse Support)
To switch the control unit to Logitech MS-Compatible Format, issue the
command shown in Table 6-9.
Figure 6-9. Logitech MS-Compatible Format Command
ASCII
HEX
*V
2A, 56
In MS-Compatible format, each mouse report sent to the host computer
consists of three bytes, each byte containing seven bits. The three bytes
contain the status of each of the two buttons and the relative X and Y
movements of the mouse. The format of the three bytes is shown in
Table 6-10.
Figure 6-10. MS-Compatable Mouse Report Format
Name
Bit6
Byte 1
1
Byte 2
0
Byte 3
0
Where in Table 6-10,
L = Left Button,
R = Right Button,
X7...X0 = X movement since the last report is expressed as an 8-bit
two's complement value (-128 to +127); positive East.
Y7...Y0 = Y movement since the last report is expressed as an 8-bit
two's complement value (-128 to +127); positive South.
Application Programming Interface
Function
Select MS-Compatible format
Bit5
Bit4
Bit3
L
R
Y7
X5
X4
X3
Y5
Y4
Y3
"1" = pressed
"1" = pressed
Bit2
Bit1
Bit0
Y6
X7
X6
X2
X1
X0
Y2
Y1
Y0
51

Advertisement

Table of Contents
loading

Table of Contents