igraphic 0.2.0
Contrats graphiques chargeables : IGraphic2Module / IGraphic3Module
Loading...
Searching...
No Matches
IMouse.hpp
Go to the documentation of this file.
1
11#ifndef IMOUSE_HPP_
12#define IMOUSE_HPP_
13
14#include "Type.hpp"
15
16namespace graphic {
17
30 class IMouse {
31
32 public:
33
37 virtual ~IMouse() = default;
38
47
55 virtual bool isButtonPressed(Buttons key) const = 0;
56
64 virtual bool isButtonDown(Buttons key) const = 0;
65
73 virtual bool isButtonReleased(Buttons key) const = 0;
74
82 virtual bool isButtonUp(Buttons key) const = 0;
83
89 virtual Vector2f getPosition() const = 0;
90
96 virtual void setPosition(Vector2f position) = 0;
97
103 virtual float GetMouseWheelMove() const = 0;
104 };
105
106} // namespace graphic3
107
110#endif /* !IMOUSE_HPP_ */
Mouse interface.
Definition IMouse.hpp:30
virtual void setPosition(Vector2f position)=0
set the position of the mouse
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
virtual bool isButtonReleased(Buttons key) const =0
notice if a button is released
virtual float GetMouseWheelMove() const =0
get the mouse wheel move
virtual Vector2f getPosition() const =0
get the position of the mouse
virtual bool isButtonDown(Buttons key) const =0
notice if a button is down
virtual ~IMouse()=default
Destroy the IMouse interface.
virtual bool isButtonUp(Buttons key) const =0
notice if a button is up
virtual bool isButtonPressed(Buttons key) const =0
notice if a button is pressed
Definition IGamepad.hpp:14