able to click with cursor, button detect clicking event

This commit is contained in:
Remco
2016-06-20 13:29:28 +02:00
parent 1ec3c8f346
commit 2e50d11e07
5 changed files with 33 additions and 2 deletions
+5
View File
@@ -8,6 +8,7 @@ private:
static Cursor* instance;
bool enabled;
public:
Vec2f mousePosition;
~Cursor();
@@ -17,6 +18,10 @@ public:
void enable(bool enable);
bool isEnabled(void);
bool clicked;
int state, prev;
void draw(void);
void update(Vec2f newPosition);
};