1 #ifndef MSP_VR_MOTIONCONTROLLER_H_
2 #define MSP_VR_MOTIONCONTROLLER_H_
4 #include <msp/gl/matrix.h>
5 #include <msp/input/device.h>
12 class MotionController: public Input::Device
15 sigc::signal<void, bool> signal_tracking_state_changed;
19 Msp::GL::Matrix matrix;
23 virtual ~MotionController();
25 void attach_to_view(StereoView &);
26 void detach_from_view();
27 virtual bool is_tracked() const = 0;
28 const GL::Matrix &get_matrix() const { return matrix; }
29 virtual void update() = 0;
31 void update_from_matrix(const Msp::GL::Matrix &);