summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/Input/Button.h
blob: 5c3c0de4fc12c3acaa8a7285223cc31b13e96570 (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
#ifndef __BUTTON_H__
#define __BUTTON_H__

#include <asura-utils/Classes.h>

namespace_begin(AsuraEngine)
namespace_begin(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;

};

namespace_end
namespace_end

#endif