summaryrefslogtreecommitdiffhomepage
path: root/freetrackclient/fttypes.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-01 14:51:12 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-01 14:51:12 +0200
commit307d9030edbc3e97a49fd1f2266b0e22fcfa552a (patch)
treee0670398fb712c28e1d7e116caddd469ab47f5de /freetrackclient/fttypes.h
parentaa3d3748fd7f8a9f6f0153eecf402e50c60c7ccf (diff)
parente94be88e28b41610bab983a1cbf8f31133a4ced8 (diff)
Merge branch 'unstable' of github.com:opentrack/opentrack into trackhat-ui
Diffstat (limited to 'freetrackclient/fttypes.h')
-rw-r--r--freetrackclient/fttypes.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/freetrackclient/fttypes.h b/freetrackclient/fttypes.h
index ad974110..8611017a 100644
--- a/freetrackclient/fttypes.h
+++ b/freetrackclient/fttypes.h
@@ -31,39 +31,39 @@ typedef __int32 int32_t;
/* only 6 headpose floats and the data id are filled -sh */
typedef struct __FTData {
- int DataID;
- int CamWidth;
- int CamHeight;
+ volatile int DataID;
+ volatile int CamWidth;
+ volatile int CamHeight;
/* virtual pose */
- float Yaw; /* positive yaw to the left */
- float Pitch; /* positive pitch up */
- float Roll; /* positive roll to the left */
- float X;
- float Y;
- float Z;
+ volatile float Yaw; /* positive yaw to the left */
+ volatile float Pitch; /* positive pitch up */
+ volatile float Roll; /* positive roll to the left */
+ volatile float X;
+ volatile float Y;
+ volatile float Z;
/* raw pose with no smoothing, sensitivity, response curve etc. */
- float RawYaw;
- float RawPitch;
- float RawRoll;
- float RawX;
- float RawY;
- float RawZ;
+ volatile float RawYaw;
+ volatile float RawPitch;
+ volatile float RawRoll;
+ volatile float RawX;
+ volatile float RawY;
+ volatile float RawZ;
/* raw points, sorted by Y, origin top left corner */
- float X1;
- float Y1;
- float X2;
- float Y2;
- float X3;
- float Y3;
- float X4;
- float Y4;
+ volatile float X1;
+ volatile float Y1;
+ volatile float X2;
+ volatile float Y2;
+ volatile float X3;
+ volatile float Y3;
+ volatile float X4;
+ volatile float Y4;
} FTData;
/* we add some shit at the end for other legacy proto, sadly */
typedef struct __FTHeap {
FTData data;
- int32_t GameID;
- unsigned char table[8];
- int32_t GameID2;
+ volatile int32_t GameID;
+ volatile unsigned char table[8];
+ volatile int32_t GameID2;
} FTHeap;