20#include <unordered_map>
46 const std::unordered_map<Buttons, uint8_t> _buttons = {
~SdlMouse() override=default
SdlMouse(SdlWindow &window)
Definition SdlMouse.hpp:27
Une fenetre SDL et son renderer, implemente IWindow2.
Definition SdlWindow.hpp:50
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 SdlWindow.hpp:470
void setPosition(Vector2f position) override
set the position of the mouse
Definition SdlWindow.hpp:489
bool isButtonDown(Buttons key) const override
notice if a button is down
Definition SdlWindow.hpp:484
float GetMouseWheelMove() const override
get the mouse wheel move
Definition SdlWindow.hpp:494
bool isButtonReleased(Buttons key) const override
notice if a button is released
Definition SdlWindow.hpp:477
bool isButtonUp(Buttons key) const override
notice if a button is up
Definition SdlWindow.hpp:485
Vector2f getPosition() const override
get the position of the mouse
Definition SdlWindow.hpp:487
Vector2< double > Vector2f
Definition Vector2.hpp:112