15#include <SFML/Window.hpp>
20#include <unordered_map>
51 const std::unordered_map<Buttons, sf::Mouse::Button> _buttons = {
52 { Buttons::BUTTON_LEFT, sf::Mouse::Button::Left },
53 { Buttons::BUTTON_RIGHT, sf::Mouse::Button::Right },
54 { Buttons::BUTTON_MIDDLE, sf::Mouse::Button::Middle },
56 { Buttons::EXTRA_BUTTON_1, sf::Mouse::Button::Extra1 },
57 { Buttons::EXTRA_BUTTON_2, sf::Mouse::Button::Extra2 },
Maps the contract's buttons to sfml buttons, and reads the state the window accumulated while popping...
Definition SfmlMouse.hpp:29
~SfmlMouse() override=default
SfmlMouse(SfmlWindow &window)
Definition SfmlMouse.hpp:32
Sfml Window class - implements IWindow2 only, sfml has no 3D.
Definition SfmlWindow.hpp:46
bool isButtonPressed(Buttons key) const override
Definition SfmlWindow.hpp:297
float GetMouseWheelMove() const override
Definition SfmlWindow.hpp:326
bool isButtonDown(Buttons key) const override
Definition SfmlWindow.hpp:311
bool isButtonUp(Buttons key) const override
Definition SfmlWindow.hpp:312
bool isButtonReleased(Buttons key) const override
Definition SfmlWindow.hpp:304
void setPosition(Vector2f position) override
Definition SfmlWindow.hpp:319
Vector2f getPosition() const override
Definition SfmlWindow.hpp:314