diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-13 05:45:07 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-13 05:45:07 +0200 |
commit | 351e844f6a3c5484acfcf4fb0154bcab6f1780a0 (patch) | |
tree | e2b1fcb041ae3b763120e3ffb134d529006b0cb2 /ftnoir_protocol_mouse/ftnoir_protocol_mouse.h | |
parent | 29cf8b9ddf89a42d72ca1c0fbdc9fa93f0c5d189 (diff) |
Don't use axes as class/struct members. Use an array instead, and iterate over them where applicable.
Diffstat (limited to 'ftnoir_protocol_mouse/ftnoir_protocol_mouse.h')
-rw-r--r-- | ftnoir_protocol_mouse/ftnoir_protocol_mouse.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h index e4bc6256..e1305a6f 100644 --- a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h +++ b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h @@ -46,12 +46,12 @@ #define MOUSE_AXIS_MAX 65535
enum FTN_AngleName {
- FTN_PITCH = 1,
- FTN_YAW = 2,
- FTN_ROLL = 3,
- FTN_X = 4,
- FTN_Y = 5,
- FTN_Z = 6
+ FTN_PITCH = RX,
+ FTN_YAW = TY,
+ FTN_ROLL = RZ,
+ FTN_X = TX,
+ FTN_Y = TY,
+ FTN_Z = TZ
};
enum FTN_MouseStyle {
@@ -70,7 +70,7 @@ public: void Initialize();
bool checkServerInstallationOK();
- void sendHeadposeToGame( THeadPoseData *headpose, THeadPoseData *rawheadpose );
+ void sendHeadposeToGame( double *headpose, double *rawheadpose );
void getNameFromGame( char *dest ); // Take care dest can handle up to 100 chars...
private:
|