summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/input/button.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/asura-core/input/button.h')
-rw-r--r--source/modules/asura-core/input/button.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/source/modules/asura-core/input/button.h b/source/modules/asura-core/input/button.h
new file mode 100644
index 0000000..0df8ed2
--- /dev/null
+++ b/source/modules/asura-core/input/button.h
@@ -0,0 +1,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 \ No newline at end of file