forked from rpbpolis/spic-prj-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IMouseListener.hpp
44 lines (36 loc) · 1.04 KB
/
IMouseListener.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef IMOUSELISTENER_H_
#define IMOUSELISTENER_H_
namespace spic {
/**
* @brief Interface for objects wanting to respond to mouse events.
*/
class IMouseListener {
public:
/**
* @brief Virtual destructor.
* @spicapi
*/
virtual ~IMouseListener() = default;
/**
* @brief Called whenever the mouse is moved.
* @spicapi
*/
virtual void OnMouseMoved() = 0;
/**
* @brief Called whenever a mouse button is clicked.
* @spicapi
*/
virtual void OnMouseClicked() = 0;
/**
* @brief Called each frame when a mouse button is still down.
* @spicapi
*/
virtual void OnMousePressed() = 0;
/**
* @brief Called whenever a mouse button is released.
* @spicapi
*/
virtual void OnMouseReleased() = 0;
};
}
#endif // IMOUSELISTENER_H_