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:
rude
2009-10-10 11:11:04 +02:00
parent 0a2ae705dd
commit 87e3c4131c
101 changed files with 3225 additions and 33496 deletions
+8 -2
View File
@@ -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