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
16 Msp::GL::Matrix matrix;
20 virtual ~MotionController();
22 void attach_to_view(StereoView &);
23 void detach_from_view();
24 const GL::Matrix &get_matrix() const { return matrix; }
25 virtual void update() = 0;
27 void update_from_matrix(const Msp::GL::Matrix &);