branch | v_0 |
changeset 6 | 49560660d230 |
parent 4 | 1383ad1c4f57 |
child 9 | d3716f03efcd |
--- a/src/SpacenavWrapper.h Thu Mar 07 15:41:38 2019 +0100 +++ b/src/SpacenavWrapper.h Thu Mar 07 16:20:51 2019 +0100 @@ -29,6 +29,35 @@ public: class Event { + public: + + enum class Type { + MOTION, + BUTTON + }; + + class MotionEvent { + public: + int x; + int y; + int z; + int rx; + int ry; + int rz; + int type; + unsigned int period; + }; + + class ButtonEvent { + public: + int number; + bool pressed; + }; + + Type type; + MotionEvent motion; + ButtonEvent button; + }; SpacenavWrapper();