You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
356 B
18 lines
356 B
#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;
|
|
}; |