summaryrefslogtreecommitdiffhomepage
path: root/tracker-steamvr/steamvr.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-05-17 12:54:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-05-18 05:10:11 +0200
commit4f29f56b4e0bf5f76e689868ca091a2af94590fe (patch)
treeb3c15ceabf1e991b8bcbd4b9541dd0f851152580 /tracker-steamvr/steamvr.hpp
parent3953977d0a9048883adc5db80bd714bd9bc72ed8 (diff)
tracker/steamvr: add "[disconnected]" in device list
Diffstat (limited to 'tracker-steamvr/steamvr.hpp')
-rw-r--r--tracker-steamvr/steamvr.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracker-steamvr/steamvr.hpp b/tracker-steamvr/steamvr.hpp
index 721fded7..af8fdbc8 100644
--- a/tracker-steamvr/steamvr.hpp
+++ b/tracker-steamvr/steamvr.hpp
@@ -40,6 +40,7 @@ struct device_spec
QString model, serial, type;
unsigned k;
QString to_string() const;
+ bool is_connected;
};
struct device_list final
@@ -48,7 +49,7 @@ struct device_list final
device_list();
void refresh_device_list();
- const QList<device_spec>& devices() const & { return device_specs; }
+ const QList<device_spec>& devices() const { return device_specs; }
static OTR_NEVER_INLINE maybe_pose get_pose(int k);
static QString strerror(error_t error);
@@ -61,7 +62,6 @@ private:
QList<device_spec> device_specs;
static QMutex mtx;
static tt vr_init_();
- static void vr_deleter();
static void fill_device_specs(QList<device_spec>& list);
static tt vr_init();
};