English
Language : 

MA104 Datasheet, PDF (20/32 Pages) Megawin Technology Co., Ltd – USB 2.0 low speed device.
MA104 Datasheet
Version 1.02
6.2.4 Mouse code data format
There are 4 bytes for mouse data listed as Table 6-11.
Table 6-11 Mouse Data Payload Format
Function Name D7 D6 D5 D4 D3 D2 D1 D0
Byte 1
Button
B8 B7 B6 B5 B4 B3 B2 B1
Byte 2 X Axis (Low)
X7 X6 X5 X4 X3 X2 X1 X0
Byte 3 X Axis (High) X15 X14 X13 X12 X11 X10 X9 X8
Byte 4 Y Axis (Low)
Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
Byte 5 Y Axis (High) Y15 Y14 Y13 Y12 Y11 Y10 Y9 Y8
Byte 6
Z Axis
Z7 Z6 Z5 Z4 Z3 Z2 Z1 Z0
Button : B1 ~ B8. : Button 1 ~ Button 8
Button 1 : Mouse left button. Set 1 to press and clear 0 to release.
Button 2 : Mouse right button. Set 1 to press and clear 0 to release.
Button 3 : Mouse middle button. Set 1 to press and clear 0 to release.
X Axis : X15 ~ X0 : 16 bits signed integer. Represent the relative displacement of device in the X direction.
The data range is +32767 ~ -32767.
Y Axis : Y15 ~ Y0 : 16 bits signed integer. Represent the relative displacement of device in the Y direction.
The data range is +32767 ~ -32767.
Z Axis : Z7 ~ Z0 : Z-wheel is 8 bits signed integer. The data range is +127 ~ -128.
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
20/32