Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
fttypes.h
Go to the documentation of this file.
1
/************************************************************************************
2
* * FTTypes FTTypes contains the specific type definitions for the *
3
* * FreeTrack protocol. *
4
* * It was loosely translated from FTTypes.pas *
5
* * which was created by the FreeTrack-team. *
6
* * *
7
* * Wim Vriend (Developing) *
8
* * Ron Hendriks (Testing and Research) *
9
* * *
10
* * Homepage <http://facetracknoir.sourceforge.net/home/default.htm> *
11
* * *
12
* * This program is distributed in the hope that it will be useful, but *
13
* * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *
14
* * or FITNESS FOR A PARTICULAR PURPOSE. *
15
* * *
16
* * The FTTypes sources were translated from the original Delphi sources *
17
* * created by the FreeTrack developers. *
18
*/
19
20
#pragma once
21
22
#include <inttypes.h>
23
24
#ifndef FREETRACK_HEAP
25
#define FREETRACK_HEAP "FT_SharedMem"
26
#endif
27
#ifndef FREETRACK_MUTEX
28
#define FREETRACK_MUTEX "FT_Mutext"
29
#endif
30
31
/* only 6 headpose floats and the data id are filled -sh */
32
typedef
struct
FTData__
{
33
uint32_t
DataID
;
34
int32_t
CamWidth
;
35
int32_t
CamHeight
;
36
/* virtual pose */
37
float
Yaw
;
/* positive yaw to the left */
38
float
Pitch
;
/* positive pitch up */
39
float
Roll
;
/* positive roll to the left */
40
float
X
;
41
float
Y
;
42
float
Z
;
43
/* raw pose with no smoothing, sensitivity, response curve etc. */
44
float
RawYaw
;
45
float
RawPitch
;
46
float
RawRoll
;
47
float
RawX
;
48
float
RawY
;
49
float
RawZ
;
50
/* raw points, sorted by Y, origin top left corner */
51
float
X1
;
52
float
Y1
;
53
float
X2
;
54
float
Y2
;
55
float
X3
;
56
float
Y3
;
57
float
X4
;
58
float
Y4
;
59
}
volatile
FTData
;
60
61
/* we add some shit at the end for other legacy proto, sadly */
62
63
typedef
struct
FTHeap__
{
64
FTData
data
;
65
int32_t
GameID
;
66
union
67
{
68
unsigned
char
table
[8];
69
int32_t
table_ints
[2];
70
};
71
int32_t
GameID2
;
72
}
volatile
FTHeap
;
FTHeap
struct FTHeap__ FTHeap
FTData
struct FTData__ FTData
FTData__
Definition
fttypes.h:32
FTData__::RawPitch
float RawPitch
Definition
fttypes.h:45
FTData__::Y4
float Y4
Definition
fttypes.h:58
FTData__::X2
float X2
Definition
fttypes.h:53
FTData__::Y2
float Y2
Definition
fttypes.h:54
FTData__::Roll
float Roll
Definition
fttypes.h:39
FTData__::Yaw
float Yaw
Definition
fttypes.h:37
FTData__::RawZ
float RawZ
Definition
fttypes.h:49
FTData__::X3
float X3
Definition
fttypes.h:55
FTData__::Y
float Y
Definition
fttypes.h:41
FTData__::RawYaw
float RawYaw
Definition
fttypes.h:44
FTData__::CamWidth
int32_t CamWidth
Definition
fttypes.h:34
FTData__::Z
float Z
Definition
fttypes.h:42
FTData__::Pitch
float Pitch
Definition
fttypes.h:38
FTData__::DataID
uint32_t DataID
Definition
fttypes.h:33
FTData__::RawX
float RawX
Definition
fttypes.h:47
FTData__::X4
float X4
Definition
fttypes.h:57
FTData__::RawY
float RawY
Definition
fttypes.h:48
FTData__::Y1
float Y1
Definition
fttypes.h:52
FTData__::Y3
float Y3
Definition
fttypes.h:56
FTData__::CamHeight
int32_t CamHeight
Definition
fttypes.h:35
FTData__::X
float X
Definition
fttypes.h:40
FTData__::X1
float X1
Definition
fttypes.h:51
FTData__::RawRoll
float RawRoll
Definition
fttypes.h:46
FTHeap__
Definition
fttypes.h:63
FTHeap__::data
FTData data
Definition
fttypes.h:64
FTHeap__::GameID2
int32_t GameID2
Definition
fttypes.h:71
FTHeap__::GameID
int32_t GameID
Definition
fttypes.h:65
FTHeap__::[union].__unnamed0__::table
unsigned char table[8]
FTHeap__::[union].__unnamed0__::table_ints
int32_t table_ints[2]
ThirdParty
FreeTrackClient
fttypes.h
Generated on
for Rise by
1.18.0