20#include <unordered_map>
46 const std::unordered_map<Buttons, uint8_t> _buttons = {
47 { Buttons::BUTTON_LEFT, SDL_BUTTON_LEFT },
48 { Buttons::BUTTON_RIGHT, SDL_BUTTON_RIGHT },
49 { Buttons::BUTTON_MIDDLE, SDL_BUTTON_MIDDLE },
50 { Buttons::EXTRA_BUTTON_1, SDL_BUTTON_X1 },
51 { Buttons::EXTRA_BUTTON_2, SDL_BUTTON_X2 },
Definition SdlMouse.hpp:24
~SdlMouse() override=default
SdlMouse(SdlWindow &window)
Definition SdlMouse.hpp:27
Une fenetre SDL et son renderer, implemente IWindow2.
Definition SdlWindow.hpp:50
bool isButtonPressed(Buttons key) const override
Definition SdlWindow.hpp:470
void setPosition(Vector2f position) override
Definition SdlWindow.hpp:489
bool isButtonDown(Buttons key) const override
Definition SdlWindow.hpp:484
float GetMouseWheelMove() const override
Definition SdlWindow.hpp:494
bool isButtonReleased(Buttons key) const override
Definition SdlWindow.hpp:477
bool isButtonUp(Buttons key) const override
Definition SdlWindow.hpp:485
Vector2f getPosition() const override
Definition SdlWindow.hpp:487