From 1497dccd63a84b7ee2b229b1ad9c5c02718f2a78 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 19 Mar 2019 23:06:27 +0800 Subject: *rename --- Source/Asura.Engine/Input/Keyboard.h | 73 ------------------------------------ 1 file changed, 73 deletions(-) delete mode 100644 Source/Asura.Engine/Input/Keyboard.h (limited to 'Source/Asura.Engine/Input/Keyboard.h') diff --git a/Source/Asura.Engine/Input/Keyboard.h b/Source/Asura.Engine/Input/Keyboard.h deleted file mode 100644 index 488209b..0000000 --- a/Source/Asura.Engine/Input/Keyboard.h +++ /dev/null @@ -1,73 +0,0 @@ -#ifndef __ASURA_INPUT_KEYBOARD_H__ -#define __ASURA_INPUT_KEYBOARD_H__ - -#include - -#include "InputDevice.hpp" -#include "Scripting/Portable.h" - -namespace AsuraEngine -{ - namespace Input - { - - class Keyboard ASURA_FINAL : public InputDevice - { - public: - - // 键盘相关的枚举 - #include "Keyboard.defs" - - Keyboard(); - - void SetKeyRepeat(bool enable); - bool HasKeyRepeat() const; - bool IsDown(const std::vector &keylist) const; - bool IsScancodeDown(const std::vector &scancodelist) const; - - Key GetKeyFromScancode(Scancode scancode) const; - Scancode GetScancodeFromKey(Key key) const; - - void SetTextInput(bool enable); - void SetTextInput(bool enable, double x, double y, double w, double h); - bool HasTextInput() const; - bool HasScreenKeyboard() const; - - bool GetConstant(Scancode in, SDL_Scancode &out); - bool GetConstant(SDL_Scancode in, Scancode &out); - - private: - - ~Keyboard(); - - public: - - //---------------------------------------------------------------------------------------------------------- - - LUAX_DECL_SINGLETON(Keyboard); // 通过AsuraEngine.Keyboard直接访问,没有New方法 - - LUAX_DECL_ENUM(Key); - LUAX_DECL_ENUM(ScanCode); - - LUAX_DECL_METHOD(SetKeyRepeat); - LUAX_DECL_METHOD(HasKeyRepeat); - LUAX_DECL_METHOD(IsDown); - LUAX_DECL_METHOD(IsScancodeDown); - - LUAX_DECL_METHOD(GetKeyFromScancode); - LUAX_DECL_METHOD(GetScancodeFromKey); - - LUAX_DECL_METHOD(SetTextInput); - LUAX_DECL_METHOD(HasTextInput); - LUAX_DECL_METHOD(HasScreenKeyboard); - - LUAX_DECL_METHOD(GetConstant); - - //---------------------------------------------------------------------------------------------------------- - - }; - - } -} - -#endif \ No newline at end of file -- cgit v1.1-26-g67d0