From 4c1b69ee6c4297d9e1b3ef2f68e3602f0479c702 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 14 Oct 2014 22:43:50 +0200 Subject: drop EZCA mode, pitch already up to 180 --- ftnoir_protocol_ft/ftnoir_ftcontrols.ui | 91 +++++++----------------- ftnoir_protocol_ft/ftnoir_protocol_ft.cpp | 2 +- ftnoir_protocol_ft/ftnoir_protocol_ft.h | 5 +- ftnoir_protocol_ft/ftnoir_protocol_ft_dialog.cpp | 1 - 4 files changed, 28 insertions(+), 71 deletions(-) diff --git a/ftnoir_protocol_ft/ftnoir_ftcontrols.ui b/ftnoir_protocol_ft/ftnoir_ftcontrols.ui index 172d0f8d..5356d2e5 100644 --- a/ftnoir_protocol_ft/ftnoir_ftcontrols.ui +++ b/ftnoir_protocol_ft/ftnoir_ftcontrols.ui @@ -12,8 +12,8 @@ 0 0 - 520 - 449 + 422 + 305 @@ -42,16 +42,16 @@ false - - + + - + 0 0 - TrackIR.exe + TIRViews Qt::AlignJustify|Qt::AlignTop @@ -59,55 +59,27 @@ false - + - + Qt::RightToLeft - EZCA mode + Memory hacks - + - Can enable for 180° pitch range (not shown in UI) rather than regular 90° + Only for very old and buggy old games such as CFS3. - - true + + false - - - - - - - - - - 0 - 0 - - - - Select interface - - - Qt::AlignJustify|Qt::AlignTop - - - false - - - - - - - - - Disable one of the protocols if game is confused by presence of both at the same time. + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter true @@ -117,7 +89,7 @@ - + @@ -155,23 +127,23 @@ - + QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - + + - + 0 0 - TIRViews + Select interface Qt::AlignJustify|Qt::AlignTop @@ -179,27 +151,14 @@ false - + - - - Qt::RightToLeft - - - Memory hacks - - + - + - Only for very old and buggy old games such as CFS3. - - - false - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + Disable one of the protocols if game is confused by presence of both at the same time. true diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp index 107735e2..ae23be3c 100644 --- a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp +++ b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp @@ -50,7 +50,7 @@ FTNoIR_Protocol::~FTNoIR_Protocol() void FTNoIR_Protocol::sendHeadposeToGame(const double* headpose) { float yaw = getRadsFromDegrees(headpose[Yaw]); - float pitch = getRadsFromDegrees(headpose[Pitch]) * (s.useDummyExe ? 2.0 : 1.0); + float pitch = getRadsFromDegrees(headpose[Pitch]); float roll = getRadsFromDegrees(headpose[Roll]); float tx = headpose[TX] * 10.f; float ty = headpose[TY] * 10.f; diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft.h b/ftnoir_protocol_ft/ftnoir_protocol_ft.h index 5b45e41a..5a9e5cdd 100644 --- a/ftnoir_protocol_ft/ftnoir_protocol_ft.h +++ b/ftnoir_protocol_ft/ftnoir_protocol_ft.h @@ -44,12 +44,11 @@ using namespace options; struct settings { pbundle b; value intUsedInterface; - value useTIRViews, useDummyExe; + value useTIRViews; settings() : b(bundle("proto-freetrack")), intUsedInterface(b, "used-interfaces", 0), - useTIRViews(b, "use-memory-hacks", false), - useDummyExe(b, "ezca-mode", false) + useTIRViews(b, "use-memory-hacks", false) {} }; diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft_dialog.cpp b/ftnoir_protocol_ft/ftnoir_protocol_ft_dialog.cpp index 9db3211c..3e440607 100644 --- a/ftnoir_protocol_ft/ftnoir_protocol_ft_dialog.cpp +++ b/ftnoir_protocol_ft/ftnoir_protocol_ft_dialog.cpp @@ -34,7 +34,6 @@ FTControls::FTControls() connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel())); connect(ui.bntLocateNPClient, SIGNAL(clicked()), this, SLOT(selectDLL())); - tie_setting(s.useDummyExe, ui.chkStartDummy); tie_setting(s.useTIRViews, ui.chkTIRViews); ui.cbxSelectInterface->addItem("Enable both"); -- cgit v1.2.3