Difference between revisions of "QTM:GetHeadtrackingInfo"

From 3dbrew
Jump to navigation Jump to search
 
Line 53: Line 53:
 
| 0xC
 
| 0xC
 
| 0x20
 
| 0x20
| 8 float fields.
+
| 4 coordinate entries: head top-left, head bottom-right, head bottom-left, and head top-right.
 
|-
 
|-
 
| 0x2C
 
| 0x2C
Line 61: Line 61:
  
 
The total size of this structure is 0x40-bytes.
 
The total size of this structure is 0x40-bytes.
 +
 +
==Coordinate entry==
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Offset
 +
!  Size
 +
!  Description
 +
|-
 +
| 0x0
 +
| 0x4
 +
| float x
 +
|-
 +
| 0x4
 +
| 0x4
 +
| float y
 +
|}
 +
 +
The total entry size is 0x8-bytes. The range for these two floats are -1.0f..1.0.f. These are relative to the center of the screen.

Latest revision as of 07:25, 21 December 2014

Request[edit]

Index Word Description
0 Header code [0x00020080]
1-2 u64, normally zero

Response[edit]

Index Word Description
0 Header code
1 Result code
2..17 Output structure

Structure[edit]

Offset Size Description
0x0 0x4 u8 flags which indicate whether the head was detected.
0x4 0x1 u8 flag, unknown
0x5 0x3 Padding
0x8 0x4 float, not used by System_Settings.
0xC 0x20 4 coordinate entries: head top-left, head bottom-right, head bottom-left, and head top-right.
0x2C 0x14 Not used by System_Settings.

The total size of this structure is 0x40-bytes.

Coordinate entry[edit]

Offset Size Description
0x0 0x4 float x
0x4 0x4 float y

The total entry size is 0x8-bytes. The range for these two floats are -1.0f..1.0.f. These are relative to the center of the screen.