31 lines
496 B
C++
31 lines
496 B
C++
|
|
#ifndef PLATFORM_UNIX_X11MOUSE_H
|
|
#define PLATFORM_UNIX_X11MOUSE_H
|
|
|
|
#include <Spectre/Input/Mouse.h>
|
|
|
|
namespace sp {
|
|
|
|
class X11Mouse : public Mouse
|
|
{
|
|
public :
|
|
virtual void init();
|
|
|
|
// Get mouse position
|
|
virtual Vector2f getPosition() const;
|
|
|
|
virtual Vector2f getAbsPosition() const;
|
|
|
|
virtual bool isButtonDown(Mouse::Button button) const;
|
|
|
|
protected :
|
|
|
|
virtual void update(InputModule *input);
|
|
|
|
protected :
|
|
Vector2f m_position;
|
|
};
|
|
|
|
} // namespace sp
|
|
|
|
#endif /* PLATFORM_UNIX_X11MOUSE_H */
|