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.h41
1 files changed, 20 insertions, 21 deletions
diff --git a/source/modules/asura-core/input/button.h b/source/modules/asura-core/input/button.h
index 0df8ed2..78f9b6d 100644
--- a/source/modules/asura-core/input/button.h
+++ b/source/modules/asura-core/input/button.h
@@ -1,32 +1,31 @@
#ifndef __BUTTON_H__
#define __BUTTON_H__
-namespace AsuraEngine
-{
- namespace Input
- {
+#include <asura-utils/classes.h>
- /// keyboard button \ mouse button \ joystick button
- class Button
- {
- public:
- inline Button(int key, bool state) :
- key(key),
- state(state)
- {
- }
+namespace_begin(AsuraEngine)
+namespace_begin(Input)
- inline int GetKey(void) const { return this->key; }
- inline bool GetState(void) const { return this->state; }
+/// keyboard button \ mouse button \ joystick button
+class Button
+{
+public:
+ inline Button(int key, bool state) :
+ key(key),
+ state(state)
+ {
+ }
- private:
- int key;
- bool 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 \ No newline at end of file