![]() |
PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
|
Sdl Mouse class. More...
#include <SdlMouse.hpp>
Public Member Functions | |
| SdlMouse (graphic::IEvent *event) | |
| Construct a new Sdl Mouse object. | |
| ~SdlMouse () | |
| Destroy the Sdl Mouse object. | |
| bool | isButtonPressed (Buttons key) const override |
| notice if a button is pressed | |
| bool | isButtonDown (Buttons key) const override |
| notice if a button is down | |
| bool | isButtonReleased (Buttons key) const override |
| notice if a button is released | |
| bool | isButtonUp (Buttons key) const override |
| notice if a button is up | |
| __v2f_t | getPosition () const override |
| Get the Position object. | |
| void | setPosition (__v2f_t position) override |
| Set the Position object. | |
| float | GetMouseWheelMove () const override |
| Get the Mouse Wheel Move object. | |
| void | update () override |
| update the mouse | |
Public Member Functions inherited from graphic::IMouse | |
| virtual | ~IMouse ()=default |
| Destroy the IMouse interface. | |
Private Attributes | |
| SdlEvent * | _event |
Additional Inherited Members | |
Public Types inherited from graphic::IMouse | |
| enum | Buttons { BUTTON_LEFT , BUTTON_RIGHT , BUTTON_MIDDLE , EXTRA_BUTTON_1 , EXTRA_BUTTON_2 } |
Sdl Mouse class.