diff -r 6ba51911d539 -r 49560660d230 src/SpacenavWrapper.h --- 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();