English
Language : 

MA104 Datasheet, PDF (21/32 Pages) Megawin Technology Co., Ltd – USB 2.0 low speed device.
MA104 Datasheet
Version 1.02
6.2.5 Joystick code data format
There are 6 bytes for mouse data listed as Table 6-12 .
Table 6-12 Joystick Data Payload Format
Function Name
D7 D6 D5 D4 D3 D2 D1 D0
Byte 1
X Axis
X7
X6 X5 X4 X3
X2
X1
X0
Byte 2
Y Axis
Y7
Y6 Y5 Y4 Y3
Y2
Y1
Y0
Byte 3
Z Axis
Z7
Z6 Z5 Z4 Z3
Z2
Z1
Z0
Byte 4
Rz Axis
Rz7 Rz6 Rz5 Rz4 Rz3 Rz2 Rz1 Rz0
Byte 5 Button / Hat switch B4 B3 B2 B1
Hat switch
Byte 6
Button
B12 B11 B10 B9 B8
B7
B6
B5
X Axis : X7 ~ X0 : 8 bits unsigned integer. Represent the relative displacement of device in the X direction.
The data range is 0 ~ 255, shown as Figure 6-1.
Y Axis : Y7 ~ Y0 : 8 bits unsigned integer. Represent the relative displacement of device in the Y direction.
The data range is 0 ~ 255, shown as Figure 6-1.
Z Axis : Z7 ~ Z0 : 8 bits unsigned integer. Represent the relative displacement of device in the Z direction.
The data range is 0 ~ 255, shown as Figure 6-1.
Rz Axis : Rz7 ~ Rz0 : 8 bits unsigned integer. Represent the relative displacement of device in the Rz direction.
The data range is 0 ~ 255, shown as Figure 6-1.
Hat switch : 4 bits value, value is shown as Figure 6-1.
Button :B12 ~ B1 : Set 1 to press and clear 0 to release.
Figure 6-1 Joystick Report Value
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
21/32