summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/input/keyboard_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/asura-core/input/keyboard_state.h')
-rw-r--r--source/modules/asura-core/input/keyboard_state.h44
1 files changed, 21 insertions, 23 deletions
diff --git a/source/modules/asura-core/input/keyboard_state.h b/source/modules/asura-core/input/keyboard_state.h
index f6aa5ea..5c43dff 100644
--- a/source/modules/asura-core/input/keyboard_state.h
+++ b/source/modules/asura-core/input/keyboard_state.h
@@ -5,35 +5,33 @@
#include "button.h"
-namespace AsuraEngine
-{
- namespace Input
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Input)
- typedef std::vector<Button> Buttons;
+typedef std::vector<Button> Buttons;
- class KeyboardState
- {
- private:
- Buttons buttons;
+class KeyboardState
+{
+private:
+ Buttons buttons;
- public:
- inline KeyboardState(void)
- {
- this->buttons.reserve(256);
- }
+public:
+ inline KeyboardState(void)
+ {
+ this->buttons.reserve(256);
+ }
- inline const Buttons &GetButtons(void) const { return this->buttons; }
- inline void AddButton(int key, bool state) { this->buttons.push_back(Button(key, state)); }
+ inline const Buttons &GetButtons(void) const { return this->buttons; }
+ inline void AddButton(int key, bool state) { this->buttons.push_back(Button(key, state)); }
- void Reset(bool full)
- {
- this->buttons.clear();
- }
+ void Reset(bool full)
+ {
+ this->buttons.clear();
+ }
- };
+};
- }
-}
+namespace_end
+namespace_end
#endif \ No newline at end of file