Rise
The Vieneo Province
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 */
32typedef 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
63typedef struct FTHeap__ {
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;
struct FTHeap__ FTHeap
struct FTData__ FTData
float RawPitch
Definition fttypes.h:45
float Y4
Definition fttypes.h:58
float X2
Definition fttypes.h:53
float Y2
Definition fttypes.h:54
float Roll
Definition fttypes.h:39
float Yaw
Definition fttypes.h:37
float RawZ
Definition fttypes.h:49
float X3
Definition fttypes.h:55
float Y
Definition fttypes.h:41
float RawYaw
Definition fttypes.h:44
int32_t CamWidth
Definition fttypes.h:34
float Z
Definition fttypes.h:42
float Pitch
Definition fttypes.h:38
uint32_t DataID
Definition fttypes.h:33
float RawX
Definition fttypes.h:47
float X4
Definition fttypes.h:57
float RawY
Definition fttypes.h:48
float Y1
Definition fttypes.h:52
float Y3
Definition fttypes.h:56
int32_t CamHeight
Definition fttypes.h:35
float X
Definition fttypes.h:40
float X1
Definition fttypes.h:51
float RawRoll
Definition fttypes.h:46
FTData data
Definition fttypes.h:64
int32_t GameID2
Definition fttypes.h:71
int32_t GameID
Definition fttypes.h:65