-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathIKeyListener.hpp
34 lines (28 loc) · 894 Bytes
/
IKeyListener.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
#ifndef IKEYLISTENER_H_
#define IKEYLISTENER_H_
namespace spic {
/**
* @brief Interface for objects wanting to respond to keyboard events.
*/
class IKeyListener {
public:
/**
* @brief Virtual destructor.
* @spicapi
*/
virtual ~IKeyListener() = default;
/**
* @brief This method will be caled whenever a key is pressed.
* Override for implementing the desired behaviour.
* @spicapi
*/
virtual void OnKeyPressed() = 0;
/**
* @brief This method will be called whenever a pressed key is released again.
* Override for implementing the desired behaviour.
* @spicapi
*/
virtual void OnKeyReleased() = 0;
};
}
#endif // IKEYLISTENER_H_