Replaced the mouse button constants ("l", "r", "m", etc.) with button numbers. 1 is the primary button, 2 is the secondary button, 3 is middle-mouse, etc. Resolves issue #1019.

This commit is contained in:
Alex Szpakowski
2015-03-25 00:31:16 -03:00
parent 78dd8bc547
commit 86d41620dd
9 changed files with 43 additions and 123 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ class Mouse : public love::mouse::Mouse
public:
// Implements Module.
const char *getName() const;
const char *getName() const override;
Mouse();
~Mouse();
@@ -62,7 +62,7 @@ public:
void setY(double y);
void setPosition(double x, double y);
void setVisible(bool visible);
bool isDown(Button *buttonlist) const;
bool isDown(const std::vector<int> &buttons) const;
bool isVisible() const;
void setGrabbed(bool grab);
bool isGrabbed() const;