summaryrefslogtreecommitdiffhomepage
path: root/tracker-rift-042
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-rift-042')
-rw-r--r--tracker-rift-042/ftnoir_tracker_rift_042.cpp12
-rw-r--r--tracker-rift-042/ftnoir_tracker_rift_042.h6
2 files changed, 9 insertions, 9 deletions
diff --git a/tracker-rift-042/ftnoir_tracker_rift_042.cpp b/tracker-rift-042/ftnoir_tracker_rift_042.cpp
index af8a386f..6c5d6f60 100644
--- a/tracker-rift-042/ftnoir_tracker_rift_042.cpp
+++ b/tracker-rift-042/ftnoir_tracker_rift_042.cpp
@@ -12,17 +12,17 @@
using namespace OVR;
-Rift_Tracker::Rift_Tracker() : old_yaw(0), hmd(nullptr)
+rift_tracker_042::rift_tracker_042() : old_yaw(0), hmd(nullptr)
{
}
-Rift_Tracker::~Rift_Tracker()
+rift_tracker_042::~rift_tracker_042()
{
ovrHmd_Destroy(hmd);
ovr_Shutdown();
}
-void Rift_Tracker::start_tracker(QFrame*)
+void rift_tracker_042::start_tracker(QFrame*)
{
ovr_Initialize();
hmd = ovrHmd_Create(0);
@@ -34,14 +34,14 @@ void Rift_Tracker::start_tracker(QFrame*)
{
QMessageBox::warning(nullptr,
"Error",
- QStringLiteral("Unable to start Rift tracker: %1").arg(ovrHmd_GetLastError(nullptr)),
+ QCoreApplication::translate("rift_tracker_042", "Unable to start Rift tracker: %1").arg(ovrHmd_GetLastError(nullptr)),
QMessageBox::Ok,
QMessageBox::NoButton);
}
}
-void Rift_Tracker::data(double *data)
+void rift_tracker_042::data(double *data)
{
if (hmd)
{
@@ -87,4 +87,4 @@ void Rift_Tracker::data(double *data)
}
}
-OPENTRACK_DECLARE_TRACKER(Rift_Tracker, dialog_rift_042, rift_042Dll)
+OPENTRACK_DECLARE_TRACKER(rift_tracker_042, dialog_rift_042, rift_042Dll)
diff --git a/tracker-rift-042/ftnoir_tracker_rift_042.h b/tracker-rift-042/ftnoir_tracker_rift_042.h
index ed802da0..82081085 100644
--- a/tracker-rift-042/ftnoir_tracker_rift_042.h
+++ b/tracker-rift-042/ftnoir_tracker_rift_042.h
@@ -21,11 +21,11 @@ struct settings : opts {
{}
};
-class Rift_Tracker : public ITracker
+class rift_tracker_042 : public ITracker
{
public:
- Rift_Tracker();
- virtual ~Rift_Tracker() override;
+ rift_tracker_042();
+ virtual ~rift_tracker_042() override;
void start_tracker(QFrame *) override;
void data(double *data) override;
private: