X-Git-Url: http://git.tdb.fi/?p=libs%2Fvr.git;a=blobdiff_plain;f=source%2Fopenvr%2Fopenvrcontroller.h;h=00ae1c09d5c83ba1018665d2479ddf04abb818ec;hp=18c5774817e729977e63ad3b0066808ec569c8e0;hb=697c2e06a90574c4526afe2d7d57edca099d2ceb;hpb=80785cc981166c5faacfcc41476b3d2ffdb65c4a diff --git a/source/openvr/openvrcontroller.h b/source/openvr/openvrcontroller.h index 18c5774..00ae1c0 100644 --- a/source/openvr/openvrcontroller.h +++ b/source/openvr/openvrcontroller.h @@ -26,6 +26,7 @@ public: virtual std::string get_axis_name(unsigned) const; int get_index() const { return index; } + virtual bool is_tracked() const { return index>=0; } void event(const Event &); virtual void update();