mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
// LOVE
|
||||
#include <mouse/Mouse.h>
|
||||
#include <common/EnumMap.h>
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -39,14 +40,19 @@ namespace sdl
|
||||
|
||||
int getX() const;
|
||||
int getY() const;
|
||||
void getPosition(int * x, int * y) const;
|
||||
void getPosition(int & x, int & y) const;
|
||||
void setPosition(int x, int y);
|
||||
void setVisible(bool visible);
|
||||
bool isDown(int button) const;
|
||||
bool isDown(Button button) const;
|
||||
bool isVisible() const;
|
||||
void setGrab(bool grab);
|
||||
bool isGrabbed() const;
|
||||
|
||||
public:
|
||||
|
||||
static EnumMap<Button, unsigned, BUTTON_MAX_ENUM>::Entry buttonEntries[];
|
||||
static EnumMap<Button, unsigned, BUTTON_MAX_ENUM> buttons;
|
||||
|
||||
}; // Mouse
|
||||
|
||||
} // sdl
|
||||
|
||||
Reference in New Issue
Block a user