Return to previous page Return to menu Go to next page

Saturn analog device

Devices equipped with A / D converters such as analog joysticks, analog steering, and tablets.
Peripheral type is based on 1H and data size of 5 bytes.
As a feature of the format, 1st Data has a configuration equivalent to a Mega Drive 3-button PAD. Compatibility can be secured by building an application so that the application can be controlled with just 1st Data. Table 3.11 shows the standard format of Saturn analog devices.

Table 3.11 Saturn Analog Device Standard Format
 
 bit7 
 bit6 
bit5
bit4
bit3
bit2
bit1
bit0
 Saturn Peripheral ID 
 0 
 0 
 0 
 1 
 Data size 
 1st Data  
 Right 
 Left 
Down
Up
Start
A TRG
C TRG
B TRG
 2nd Data  
 R TRG 
 X TRG 
Y TRG
Z TRG
L TRG
 Extended data 
 3rd Data  
 AX7 
 AX6 
AX5
AX4
AX3
AX2
AX1
AX0
 4th Data  
 AY7 
 AY6 
AY5
AY4
AY3
AY2
AY1
AY0
 5th Data  
 AZ7 
 AZ6 
AZ5
AZ4
AZ3
AZ2
AZ1
AZ0
 6th Data  
 Extended data 
 Extended data 
 Extended data 
 nth Data  
 Extended data 

* Right, Left, Down, Up, Start, A TRG, C TRG, B TRG, R TRG, X TRG, Y TRG, Z TRG, L TRG are 0 when the button is pressed.
AX7 to AX0, AY7 to AY0, AZ7 to AZ0 output the absolute value of the A / D converter output without a sign.
AX7 to AX0 and AY7 to AY0 are (0,0) in the upper left and (255,255) in the lower right.
AZ7 to AZ0 are 0 at the bottom and 255 at the top.

Pointing device

A device that outputs the amount of movement of a rotary encoder represented by a mouse or trackball.
Peripheral type is based on 2H and data size is 3 bytes.
As a feature of the format, the data table of the pointing device does not have data equivalent to the MegaDrive 3 button PAD, unlike the digital device, analog device, and keyboard device. Furthermore, since the movement of X and Y data is output as the amount of movement (△ delta) of the rotary encoder, compatibility cannot be ensured unless all the defined 3 bytes are supported. Table 3.12


Return to previous page Return to menu Go to next page