mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user