15#include <SFML/Window.hpp>
20#include <unordered_map>
51 const std::unordered_map<Buttons, sf::Mouse::Button> _buttons = {
~SfmlMouse() override=default
SfmlMouse(SfmlWindow &window)
Definition SfmlMouse.hpp:32
Sfml Window class - implements IWindow2 only, sfml has no 3D.
Definition SfmlWindow.hpp:46
Mouse interface.
Definition IMouse.hpp:30
Buttons
Definition IMouse.hpp:39
@ BUTTON_LEFT
Definition IMouse.hpp:40
@ BUTTON_MIDDLE
Definition IMouse.hpp:42
@ EXTRA_BUTTON_1
Definition IMouse.hpp:44
@ EXTRA_BUTTON_2
Definition IMouse.hpp:45
@ BUTTON_RIGHT
Definition IMouse.hpp:41
bool isButtonPressed(Buttons key) const override
notice if a button is pressed
Definition SfmlWindow.hpp:297
float GetMouseWheelMove() const override
get the mouse wheel move
Definition SfmlWindow.hpp:326
bool isButtonDown(Buttons key) const override
notice if a button is down
Definition SfmlWindow.hpp:311
bool isButtonUp(Buttons key) const override
notice if a button is up
Definition SfmlWindow.hpp:312
bool isButtonReleased(Buttons key) const override
notice if a button is released
Definition SfmlWindow.hpp:304
void setPosition(Vector2f position) override
set the position of the mouse
Definition SfmlWindow.hpp:319
Vector2f getPosition() const override
get the position of the mouse
Definition SfmlWindow.hpp:314
Vector2< double > Vector2f
Definition Vector2.hpp:112