diff options
Diffstat (limited to 'tracker-rift-140/impl.cpp')
-rw-r--r-- | tracker-rift-140/impl.cpp | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/tracker-rift-140/impl.cpp b/tracker-rift-140/impl.cpp index 67d5bb47..45bfcc97 100644 --- a/tracker-rift-140/impl.cpp +++ b/tracker-rift-140/impl.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 "rift-140.hpp" #include "api/plugin-api.hpp" #include "compat/util.hpp" @@ -8,11 +22,11 @@ using namespace OVR; -Rift_Tracker::Rift_Tracker() : old_yaw(0), hmd(nullptr) +rift_tracker_140::rift_tracker_140() : old_yaw(0), hmd(nullptr) { } -Rift_Tracker::~Rift_Tracker() +rift_tracker_140::~rift_tracker_140() { if (hmd) { @@ -21,7 +35,7 @@ Rift_Tracker::~Rift_Tracker() } } -void Rift_Tracker::start_tracker(QFrame*) +void rift_tracker_140::start_tracker(QFrame*) { if (OVR_FAILURE(ovr_Initialize(nullptr))) goto error; @@ -44,12 +58,12 @@ error: QMessageBox::warning(nullptr, "Error", - QStringLiteral("Unable to start Rift tracker: %1").arg(strerror), + QCoreApplication::translate("rift_tracker_140", "Unable to start Rift tracker: %1").arg(strerror), QMessageBox::Ok, QMessageBox::NoButton); } -void Rift_Tracker::data(double *data) +void rift_tracker_140::data(double *data) { if (hmd) { @@ -94,4 +108,4 @@ void Rift_Tracker::data(double *data) } } -OPENTRACK_DECLARE_TRACKER(Rift_Tracker, dialog_rift_140, rift_140Dll) +OPENTRACK_DECLARE_TRACKER(rift_tracker_140, dialog_rift_140, rift_140Dll) |