1
0
Fork 0
spectre/include/Spectre/Input/Mouse.h

39 lines
604 B
C++

#ifndef SPECTRE_INPUT_MOUSE_H
#define SPECTRE_INPUT_MOUSE_H
#include <string>
#include <Spectre/Math/Vector2.h>
#include "InputDevice.h"
namespace sp {
class Mouse : public InputDevice
{
public :
enum Button {
Unknown,
Left,
Right,
Middle,
Button1,
Button2,
NUM_MBUTTONS
};
public :
virtual ~Mouse();
// Get mouse position
virtual Vector2f getPosition() const = 0;
//virtual Vector2i getPositionAbs() const = 0;
virtual bool isButtonDown(Button button) const = 0;
static std::string getButtonName(Button button);
};
}; // namespace sp
#endif /* SPECTRE_INPUT_MOUSE_H */