diff options
Diffstat (limited to 'tracker-rift-080/ftnoir_tracker_rift_080.cpp')
-rw-r--r-- | tracker-rift-080/ftnoir_tracker_rift_080.cpp | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/tracker-rift-080/ftnoir_tracker_rift_080.cpp b/tracker-rift-080/ftnoir_tracker_rift_080.cpp index 35a268f2..98edcb4f 100644 --- a/tracker-rift-080/ftnoir_tracker_rift_080.cpp +++ b/tracker-rift-080/ftnoir_tracker_rift_080.cpp @@ -1,4 +1,18 @@ -/* Copyright: "i couldn't care less what anyone does with the 5 lines of code i wrote" - mm0zct */ +/* Copyright (c) 2013 mm0zct + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + #include "ftnoir_tracker_rift_080.h" #include "api/plugin-api.hpp" #include "compat/util.hpp" @@ -10,18 +24,18 @@ using namespace OVR; -Rift_Tracker::Rift_Tracker() : old_yaw(0), hmd(nullptr) +rift_tracker_080::rift_tracker_080() : old_yaw(0), hmd(nullptr) { } -Rift_Tracker::~Rift_Tracker() +rift_tracker_080::~rift_tracker_080() { if (hmd) ovr_Destroy(hmd); ovr_Shutdown(); } -void Rift_Tracker::start_tracker(QFrame*) +void rift_tracker_080::start_tracker(QFrame*) { ovrResult code; ovrGraphicsLuid luid = {{0}}; @@ -55,7 +69,7 @@ error: QMessageBox::NoButton); } -void Rift_Tracker::data(double *data) +void rift_tracker_080::data(double *data) { if (hmd) { @@ -100,4 +114,4 @@ void Rift_Tracker::data(double *data) } } -OPENTRACK_DECLARE_TRACKER(Rift_Tracker, dialog_rift_080, rift_080Dll) +OPENTRACK_DECLARE_TRACKER(rift_tracker_080, dialog_rift_080, rift_080Dll) |