![]() |
PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
|
Mouse interface. More...
#include <IMouse.hpp>
Public Types | |
enum | Buttons { BUTTON_LEFT , BUTTON_RIGHT , BUTTON_MIDDLE , EXTRA_BUTTON_1 , EXTRA_BUTTON_2 } |
Public Member Functions | |
virtual | ~IMouse ()=default |
Destroy the IMouse interface. | |
virtual bool | isButtonPressed (Buttons key) const =0 |
notice if a button is pressed | |
virtual bool | isButtonDown (Buttons key) const =0 |
notice if a button is down | |
virtual bool | isButtonReleased (Buttons key) const =0 |
notice if a button is released | |
virtual bool | isButtonUp (Buttons key) const =0 |
notice if a button is up | |
virtual __v2f_t | getPosition () const =0 |
get the position of the mouse | |
virtual void | setPosition (__v2f_t position)=0 |
set the position of the mouse | |
virtual float | GetMouseWheelMove () const =0 |
get the mouse wheel move | |
virtual void | update ()=0 |
set the mouse wheel move | |
Mouse interface.