diff options
author | chai <chaifix@163.com> | 2019-08-02 20:51:00 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-02 20:51:00 +0800 |
commit | bad78945ceba425f6a80e3b8dca2414d592970eb (patch) | |
tree | 8bf7540766349c534bf9e5746b24fd7507ba034e /source/modules/asura-core/input/keyboard_state.h | |
parent | 99b90496765df21c5f377f42b9ed073ccb34c1fd (diff) |
*修改文件名格式
Diffstat (limited to 'source/modules/asura-core/input/keyboard_state.h')
-rw-r--r-- | source/modules/asura-core/input/keyboard_state.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/source/modules/asura-core/input/keyboard_state.h b/source/modules/asura-core/input/keyboard_state.h deleted file mode 100644 index 5c43dff..0000000 --- a/source/modules/asura-core/input/keyboard_state.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef __KEYBOARD_STATE_H__ -#define __KEYBOARD_STATE_H__ - -#include <vector> - -#include "button.h" - -namespace_begin(AsuraEngine) -namespace_begin(Input) - -typedef std::vector<Button> Buttons; - -class KeyboardState -{ -private: - Buttons buttons; - -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)); } - - void Reset(bool full) - { - this->buttons.clear(); - } - -}; - -namespace_end -namespace_end - -#endif
\ No newline at end of file |