#pragma once #include "input.hpp" #include "glm/vec2.hpp" class Grabber : MouseListener { public: bool started(); bool stopped(); bool moved(glm::vec2 &delta); glm::vec2 previousCursorPosition; protected: virtual void mouseButtonPressed(int button); virtual void mouseButtonReleased(int button); private: bool start = false; bool stop = false; };