blob: 0df8ed2ece85db6d1314e3178116adcabc5e3263 (
plain)
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
|
#ifndef __BUTTON_H__
#define __BUTTON_H__
namespace AsuraEngine
{
namespace Input
{
/// keyboard button \ mouse button \ joystick button
class Button
{
public:
inline Button(int key, bool state) :
key(key),
state(state)
{
}
inline int GetKey(void) const { return this->key; }
inline bool GetState(void) const { return this->state; }
private:
int key;
bool state;
};
}
}
#endif
|